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 Query

More Query from same tag