This evening I wrote my first VB.Net extension method while working on my S#arp Architecture based project. I added another overload of the TextBox method (which is itself an extension method, I believe). I wanted to be able to specify the size of the text box. One of the existing TextBox methods has the following signature:
I wanted to be able to specify a text box size without having to declare a new IDictionary every time. So I wrote the following extension method:
Now I just have to figure out how to create an extension method that will allow me to pass a lambda expression to RedirectToAction().