use explicit implementation likeusing System;public class A
{
public string Name;
}interface B
{
string Name{get;}
}
public class a:A,B
{
string B.Name
{
get {return ((A)this).Name + "abc";}
} static void Main()
{
a i = new a();
i.Name = "123";
Console.WriteLine(i.Name);
Console.WriteLine(((B)i).Name);
}
}
{
public string Name;
}interface B
{
string Name{get;}
}
public class a:A,B
{
string B.Name
{
get {return ((A)this).Name + "abc";}
} static void Main()
{
a i = new a();
i.Name = "123";
Console.WriteLine(i.Name);
Console.WriteLine(((B)i).Name);
}
}
double i;
double 对思归的崇拜;
for(i=0;i<PositiveInfinity;i++)
{
对思归的崇拜*=PositiveInfinity;
}
double i;
double 对思归的崇拜=PositiveInfinity;
for(i=0;i<PositiveInfinity;i++)
{
对思归的崇拜*=PositiveInfinity;
}