0
kicks
Extension Methods
It is one of the new feature introduced in C# 3.0 “As the name implies, extension methods extend existing .NET types with new methods.”
Here i am going to extend the String type to write an extension method.
Example Adding a IsValidEmailAddress method onto an instance of string class: