Understanding Extension Methods in .Net


.Net extension methods is a powerful extensibility feature that .Net provides for the developers to extend the existing functionality of data types and classes and add more methods without having to obtain the source code and recompile it. This implies providing the developer with a seamless use of the new methods as if these methods are part of the original class or datatype.

I hope this article and the runnable examples has provided you an adequate knowledge to the amazing extension methods feature in .Net. So are you going to start using this amazing feature in .Net? Share with us your comments and thoughts.

Article has been ported from

Create your playground on
This playground was created on, our hands-on, knowledge-sharing platform for developers.
Go to