更新:2007 年 11 月
错误消息
“reference”是“identifier”和“identifier”之间不明确的引用
程序包含两个命名空间的 using 指令,而且代码引用了在这两个命名空间中均出现的名称。
下面的示例生成 CS0104:
// CS0104.cs
using x;
using y;
namespace x
{
public class Test
{
}
}
namespace y
{
public class Test
{
}
}
public class a
{
public static void Main()
{
Test test = new Test(); // CS0104, is Test in x or y namespace?
// try the following line instead
// y.Test test = new y.Test();
}
}