I just wondering how to implement an interface member with my own class in another class. Here is an example to illustrate my question:
// --- Both files are in the same namespace --- //
// --- OwnClassA is in another namespace --- //
// --- First file --- //
// OwnClassA is importet
public interface ITest {
OwnClassA varTest {get;}
}
// --- Second file --- //
// OwnClassA is importet
public class Test : ITest {
public readonly OwnClassA varTest;
}
Visual Studio Code says: 'Test' does not implement interface member 'ITest.varTest' [Assembly-CSharp]
What I'm doing wrong here?
varTestis not a compliant name for a property. Consider renaming it toVarTest(note capitalization).