"this" in function parameter
- by chris
Looking at some code examples for HtmlHelpers, and I see declarations that look like:
public static string HelperName(this HtmlHelper htmlHelper, ...more regular params )
I can't remember seeing this type of construct any where else - can someone explain the purpose of the "this"? I thought that by declaring something public static meant that the class did not need to be instantiated - so what is "this" in this case?