Can a class implement two interfaces with the same method? How is it resolved?
Short answer
Yes. If signatures clash you can implement the members explicitly, qualified by interface name, so each interface gets its own behaviour accessible via that interface type.
Advertisement
AModel answer
Yes. If signatures clash you can implement the members explicitly, qualified by interface name, so each interface gets its own behaviour accessible via that interface type.
class C : IA, IB { void IA.Do(){} void IB.Do(){} }Real-world example
Explicit implementation hides a rarely-used interface method from the public surface.