I don't see why you would want it, but a "solution" could be to change the public
methods into explicit interface implementations. To do that, remove access modifiers (here public
) and prepend IOfis.
to the name of the method. Like this:
public class BLL_Ofis : IOfis
{
bool IOfis.Update(Ofis ofs)
{
...
}
...
}
An explicit interface implementation can only be invkoked when the compile-time type of the variable is the interface type.