In the reverse order, if you look at the definition of any extension method , the first parameter is always the instance of the object on which it is called with the this . Logically, this behavior cannot work on a static class, because the instance is missing.
An example of an extension method - see the first parameter this
public static class MyExtensions { public static int WordCount(this String str) { return str.Split(new char[] { ' ', '.', '?' }, StringSplitOptions.RemoveEmptyEntries).Length; } }
John k
source share