Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
C# & .Net Framework Reference
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

 
COPYRIGHT/DISCLAIMER | CONTACT US