public class I : MyIntface,MyIntface2{
public string this[int index] { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
public int PropertyName {
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public event EventHandler EventName;
public void MethodName() {
throw new NotImplementedException();
}
}
如果你想分别实现不同接口中的同名成员时,可以使用显式实现的方式:
cs复制代码
public int PropertyName {
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
int MyIntface2.PropertyName {
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}