Explicitly implemented interface properties usually begin with the full name of the interface. However, if it is a nested interface, the property name will be a little inconsistent.
namespace NS
{
public class Container
{
public interface ITest
{
int Prop { get; }
}
}
public class Sample : Container.ITest
{
int Container.ITest.Prop { get; }
}
}
Why is the property name not NS.Container+ITest.Prop? Or the interface is better called NS.Container.ITest. It would be more correct, wouldn't it?
source
share