C# Extention Method
Description :
- Extention method allows user to add the new function in the existing type without creating new derived class, recompiling or modifying the existing class.
- Extention methods are static methods.
Example:
- In the below example in the screen shot, method "getWelcomeMessage()" is the extention method of string type.
Comments
Post a Comment