+ 8
What is extension method in c# and how to use them?
3 ответов
+ 3
It was easy to find on google:
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods
+ 1
enable you to add methods to existing types without creating a new derived type ....it just go through whether you want any of the data type for globally or locally assign in the program
+ 1
Extension inherits from the superclass so there is no need to define the properties, attributes again. Now you can just instantiate via the constructor.