更新:2007 年 11 月
错误消息
“member1”和“member2”之间具有二义性不同接口的成员具有相同的名称。如果要保留相同的名称,则必须限定这些名称。有关更多信息,请参见
在某些情况下,此二义性可以通过使用   | 
示例
下面的示例生成 CS0229:
// CS0229.cs
interface IList
{
    int Count
    {
        get;
        set;
    }
    void Counter();
}
interface Icounter
{
    double Count
    {
        get;
        set;
    }
}
interface IListCounter : IList , Icounter {}
class MyClass
{
    void Test(IListCounter x)
    {
        x.Count = 1;  // CS0229
        // Try one of the following lines instead:
        // ((IList)x).Count = 1;
        // or
        // ((Icounter)x).Count = 1;
    }
    public static void Main() {}
} | |