Pages

Thursday, December 17, 2015

c# extension methods

C# EXTENSION METHODS – add methods, that currently do not exist, to a class . Example, can add methods to the String class. Must be declared in a static class with static methods. This example extends the DateTime class. 


EXTENSION METHOD CREATED

Add caption






EXTENSION METHOD USAGE