The following line of code presents the title error:
ITestClass t = new TestClass();
TestClass implementation:
public class TestClass : ITestClass {
public static TestClass Instance
{
get
{
return TestClass.Instance;
}
}
//Interface members
}
I have another set of classes with similiar interfaces where this cast works, why doesn't it work here?