I have:
public interface ITest
{
string test { get; set; }
}
And
[DataContract]
public class TestGeneric : ITest
{
[DataMember]
public string test;
}
But i keep getting the error: 'TestGeneric' does not implement interface member 'ITest.Test'
on TestGeneric
in the public class TestGeneric : ITest
line of code. Would someone be able to explain why this is?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…