User Tools

Site Tools


notes:csharp:extensionmethods

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:csharp:extensionmethods [2016/11/28]
admin
notes:csharp:extensionmethods [2016/11/28] (current)
admin
Line 1: Line 1:
 ====== Extension Methods in C# ====== ====== Extension Methods in C# ======
  
-You can use an extensions method ​to a class, a struct, or an interface. An extension method is a static method of a static class. The first parameter of an extension method is the type that is being extended preceded by the //this// keyword.+An extension method is a static method of a static class. ​You can use it to extend functionality of a class, a struct, or an interface. The first parameter of an extension method is the type that is being extended preceded by the //this// keyword.
  
 <WRAP center round box 60%> <WRAP center round box 60%>
notes/csharp/extensionmethods.txt ยท Last modified: 2016/11/28 by admin