How to: Explicitly Implement Interface Members with Inheritance (C#)
Full Name:
How to: Explicitly Implement Interface Members with Inheritance (C#)
Short Name:
How to: Explicitly Implement Interface Members with Inheritance (C#)
Type of Entity:
C#
Abstract:
Explicit interface implementation also allows the programmer to implement two interfaces that have the same member names and give each interface member a separate implementation. This example displays the dimensions of a box in both metric and English units. The Box class implements two interfaces IEnglishDimensions and IMetricDimensions, which represent the different measurement systems. Both interfaces have identical member names, Length and Width.
MSDN Source URL:
http://msdn2.microsoft.com/4taxa8t2.aspx