Kg P

Kg P

  • NA
  • 12
  • 2.9k

Why class containing extension method needs to be static ?

Apr 12 2017 9:37 AM
As we understand that when we create extension method on any type, we create it as static method. But, class containing this extension method is also needs to be static, otherwise we get compile time error. I didn't get proper answer for this why this class should be static in this case? Can someone please answer this?

Answers (2)