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
The Func line that you are inquiring about is known as a lambda expression.
Func
Func pageUrl = i => "Page" + i;
This line can be described as a function that takes an int parameter (i) and returns a string "Page" + i;
i
"Page" + i
It can be re-written as:
delegate(int i) { return "Page" + i; }