"this" in function parameter

Posted by chris on Stack Overflow See other posts from Stack Overflow or by chris
Published on 2010-06-15T12:49:19Z Indexed on 2010/06/15 12:52 UTC
Read the original article Hit count: 183

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-mvc