Static extension methods [duplicate]
In short, no, you can’t. Long answer, extension methods are just syntactic sugar. IE: If you have an extension method on string let’s say: public static string SomeStringExtension(this string s) { //whatever.. } When you then call it: myString.SomeStringExtension(); The compiler just turns it into: ExtensionClass.SomeStringExtension(myString); So as you can see, there’s no way to … Read more