Identifier 'Logic.DomainObjectBase._isNew' is 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:

  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 on 2014-04-10 10:05  RobotTech  阅读(...)  评论(...编辑  收藏