Identifier 'Logic.DomainObjectBase._isNew' is not CLS-compliant

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;
posted @ 2014-04-10 10:05  RobotTech  阅读(241)  评论(0编辑  收藏  举报