I\'m reading the Pro MVC 2 book, and there is an example of creating an extension method for the HtmlHelper class.
Here the code example:
public stat
Func means a callback method that takes an int parameter and returns a String as the result.
Func
int
String
The following expression, which is known as a lambda expression:
Func pageUrl = i => "Page" + i;
expands to something like this:
Func pageUrl = delegate(int i) { return "Page" + i; }