更新:2007 年 11 月
错误消息
成员“member”未隐藏继承成员。不需要关键字 new类声明包括了
下面的示例生成 CS0109:
// CS0109.cs
// compile with: /W:4
namespace x
{
public class a
{
public int i;
}
public class b : a
{
public new int i;
public new int j; // CS0109
public static void Main()
{
}
}
} | |