Код: Выделить всё
public interface I1
{
string GetRandomString();
}
public interface I2
{
string GetRandomString();
}
Код: Выделить всё
public class ClassA : I1, I2
{
string I1.GetRandomString()
{
return "GetReport I1";
}
string I2.GetRandomString()
{
return "GetReport I1";
}
}
Код: Выделить всё
static void Main(string[] args)
{
var objClassA = new ClassA();
objClassA.GetRandomString(); // not able to do this, comile time error ...
}
Любая помощь?
Подробнее здесь: https://stackoverflow.com/questions/663 ... interfaces