I have the below code to implement two interface with the same name and signature.
interface L1 {
void printresult();
}
interface L2 {
void printresult();
}
public class test : L1, L2
{
void L1.printresult()
{
Console.WriteLine("print the result");
}
void L2.printresult()
{
Console.WriteLine("print the result");
}
}
How I can access the L2.printresult()
from the program?
I tried test t1=new test();
but its not working.
How to access the methods of test and why its not accessible in the above way?