this keyword in prameter

Topics: Developer Discussion
Jul 20, 2010 at 3:07 PM

In ClubStarterKit.Core.Extensions.StringExt.cs

The static method like this 

public static string Truncate(this string text, int maxLength)

It is intresting that there is a "this" keyword before string, can anyone tell me the reason.

Does it mean point string text?

Jul 22, 2010 at 1:53 AM

I believe you are right, it is a pointer (or in VB byref) to the variable" text"