I'm having some trouble with some code in Visual C# for Windows Phone The trouble is not that it does not work, because it does, but I don't understand how =P Within a static class, a static method is created, which gives itself as a parameter:
public static void MethodONe( this Timeline animation )
{
//this class does not extend the TimeLine class, and is not connected to it in any
//such way.
animation.MethodTwo( );
}
public static void MethodTwo( this Timeline animation )
{
someCode( );
}
How is this parameterpassing called, and what does it do, exactly?