Like other posts, throwing an exception in addition to hiding a member is your best bet.
interface IPartial
{
void A();
void B();
}
class Partial : IPartial
{
public void A()
{
}
void IPartial.B()
{
throw new NotImplementedException();
}
}
class Main
{
Main()
{
Partial t = new Partial();
t.A();
t.B();
IPartial s = new Partial();
s.A();
s.B();
}
}
source
share