Posts

Showing posts from April, 2019

C# Extention Method

Image
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.