Friday, January 9, 2009

C# partial methods

I just got introduced to partial methods in c#. Vewy vewy sneaky! So... it's like having an optional abstract method. If not implemented, the compiler will remove the definition and all the calls to that method. Code generators seem to be using this technique to set up things like the famous Initialize() methods. For some examples, read the msdn doc for it.

No comments: