How can i implement a method from a class that is extended to an Interface?
I have this Interface:
public Interface myInterface
{
public static int myMethod();
}
And this class:
public class MyClass : myInterface
{
// And I want here to implement the method form myInterface and i don't know how
}
Interfacewon’t compile – change it tointerface.staticcan’t be part of aninterface.After corrections the code would look like this for example:
Regarding
staticandinterfacesee a quote from http://channel9.msdn.com/forums/TechOff/250972-Static-Inheritance/?CommentID=274217 :