我已经定义了这样的界面:
public interface myInterface {
int SomeProperty {get;set;}
}
在继承课程中,我完成了这个:
public class MyClass:myInterface {
public int SomeProperty = 5;
}
但后来我收到了这个错误:
MyClass does not implement interface member myInterface.SomeProperty.
任何想法我做错了什么?