In this article you will learn Extension Methods in C# with Practices.
This article provides some facts about Extension Methods in the C# keyword of LINQ. This keyword is very helpful when working with extensions of existing types like previously created classes.Extension methods enable you to add methods to existing types without creating a new derived type or sub-class.Facts: We generally previously had some helper class to extend the functionality as well as an option to create a subclass of an existing class to add new functionality.However you may confronted with one of the following issues.1. If the class is sealed than there is no concept of extending its functionality. To tackle such concerns we have the concept of extension methods.
Working with Directories in C#