Extension Methods in c#

Posted By : Bipul Kumar Tiwari,

Example 1:

           We created a class name is MyClass with two functions. Without changes in class we add new function name is NewMethod(). The newMethod() is called extenstion method of MyClass.

Extension Method example

Example 2:

Extension Method example

Related Articles

 

About the Author

author
Its me BIPUL who is logically minded creative at heart , a good communicator , a self taught full stack developer. I constantly focuses on my thinking , reading , collecting and creating my work in a order to enhance my skills.

I discover new dimensions for growing bussiness with a proven record in creating database and programming. I have a strong technical skills as well as strong interpersonal skills. Read more...
 

Browse By Category

Popular Articles