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 CodingSonata.com
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Creating Web API in ASP.NET Core 2.0
Multi-tenant ASP.NET Core 2 - Implementing database based tenant provider
Different ways to implement Singleton in .NET (and make people hate you along the way)
Running PHP scripts on .NET Core