更新:2007 年 11 月
错误消息
应输入 { 或 ;
属性访问器未正确声明。有关更多信息,请参见使用属性(C# 编程指南)。
示例
下面的示例生成 CS1043。
// CS1043.cs
// compile with: /target:library
public class MyClass
{
   public int DoSomething
   {
      get return 1;   // CS1043
      set {}
   }
   // OK
   public int DoSomething2
   {
      get { return 1;}
   }
}