Though this question is specific to IQueryable
design, but i came across many class and interface design where class or interface definition explicitly defines both IChildInterface
and IParentInterface
though IChildInterface : IParentInterface
Like :
class MyClass : IChildInterface, IParentInterface
Question 1 : Under what circumstances is this required ?
Question 2 : If extension method with same name is defined for IChildInterface
and IParentInterface
then which one compiler will resolve to ?