Hello, I am trying for the first time to create an extension method and i am having some trouble... maybe you guys can help out :)
public static class Extentions
{
public static int myMethod(this MyClass c)
{
return 1;
}
}
then when i do "MyClass.myMethod" i get q compiler error saying that the method does not exists...
Why is that?