http://stackoverflow.com/questions/1195030/why-is-this-name-not-cls-compliant

To get around this error you can either:

  1. Rename your property (recommended):

    protected bool isNew;
  2. Set your whole assembly to be non CLS compliant:

    [assembly:CLSCompliant(false)]
  3. Add an attribute just to your property:

    [CLSCompliant(false)]protected bool _isNew;
  4. Change the scope of the property, so that it can not be seen outside the assembly.

    private bool _isNew;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2021-08-30
  • 2021-09-25
  • 2021-06-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-06
  • 2022-02-04
  • 2021-06-19
  • 2022-12-23
  • 2022-02-18
  • 2021-12-19
相关资源
相似解决方案