I am getting this error while creating a public method on a class for explicitly implementing the interface. I have a workaround: by removing the e
When we want to go with implicit implementation for the above example, following would be the code.
interface I1 { void M(); }
interface I2 { void M(); }
class C : I1, I2
{
public void M() { ... }
}
C c = new C();
c.M(); // Ok, no ambiguity. Because both Interfaces gets implemented with one method definition.