score:0

In order to use an extension method, you must have a using directive for the namespace of the class in which you defined the extension method.

So try putting your class in a namespace, and add using for it.

Also, be sure that this class is defined as public static.


Related Articles