Tech Tutorials Database
GeekArticles Microsoft C#
 

C# Interface Implementation

 
Author: csharphelp.com
Category: C#
Comments (0)

By Pavel Tsekov Interface implementation can be confusing... I see a feature in C# that can be very confusing. In the example below we have a class (Test) that implements 2 interfaces (I1 and I2). So the logic says that we should have implementations in the class Test for both MyFunction() methods from I1 and I2. BUT! As you see in the example below everything works fine with only 1 implementation. This is not as correct as we expect, because we can't be sure which of the two interfaces...n

Read More...




Sponsored Links




Read Next: C# TimeZone



 

 

Comments