How to explicitly implement the interface method?

 Posted by Raja on 6/6/2009 | Category: C# Interview questions | Views: 5886

To explicitly implement interface we need to prefix the method name with the name of the interface following by .(dot).

string IInterface1.HelloNet()

return "Interface 1 : Hello NET";

Assuming that HelloNet method is in IInterface1 as well as another interface that is inherited in the class.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response