更新:2007 年 11 月
错误消息
属性访问器已经定义当声明
示例
下面的示例生成 CS1007:
// CS1007.cs
public class clx
{
public int MyProperty
{
get
{
return 0;
}
get // CS1007, this is the second get method
{
return 0;
}
}
public static void Main() {}
} | |