I know 'This' Keyword can not be used in static method. But confusing on Extension methods

后端 未结 0 1176
栀梦
栀梦 2021-02-02 08:56

But Extension methods(static) in c# specifies the type that it is going to operator on, preceded by the this keyword.

public static class IntExtensions { public static bo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题