I have a situation, where two classes (one deriving from the other) both implement the same interface explicitly:
interface I
{
int M();
}
class A : I
{
On option would be to create a base class that doesn't excplicitly implement an interface, and to only implement the interface on the subclass.
public class MyBase
{
public void MethodA()
{
//Do things
}
}
public interface IMyInterface
{
void MethodA();
void MethodB();
}
public class MySub: MyBase, IMyInterface
{
public void MethodB()
{
//Do things
}
}
Doing this will allow you to access the base classes MethodA without having to implemnet it in MySyb.