this parameter modifier in C#?

Posted by Ivan on Stack Overflow See other posts from Stack Overflow or by Ivan
Published on 2011-01-15T14:14:12Z Indexed on 2011/01/15 15:53 UTC
Read the original article Hit count: 122

Filed under:

I'm curious about this code snippet:

public static class XNAExtensions
{
    /// <summary>
    /// Write a Point
    /// </summary>
    public static void Write(this NetOutgoingMessage message, Point value)
    {
        message.Write(value.X);
        message.Write(value.Y);
    }
    // ...
};

What does the this keyword mean next to the parameter type? I can't seem to find any information about it anywhere, even in the C# specification.

© Stack Overflow or respective owner

Related posts about c#