What does “this” mean in a static method declaration?

前端 未结 3 1429
傲寒
傲寒 2021-01-18 08:30

I\'ve seen some code that uses the keyword this in the function parameter declaration. For example:

public static Object SomeMethod( this Object         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-18 09:24

    Extension method:

    http://msdn.microsoft.com/en-us/library/bb383977.aspx

提交回复
热议问题