錯誤提示信息:不是標記成abstract或extern,因此必須宣告主體

 

原因:主要是用到了Framework3.5的特性,而VS2005不支持。

 

原代碼:

public int sIndex { private set; get; }


 

更新代碼為:

private int _sIndex;
public int sIndex
{
       set { _sIndex = value; }
       get { return _sIndex; }
}

 

相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-06-21
  • 2021-06-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-06-07
相关资源
相似解决方案