您的位置:首页 > 移动开发 > Objective-C

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

2014-04-10 10:05 441 查看
http://stackoverflow.com/questions/1195030/why-is-this-name-not-cls-compliant

To get around this error you can either:

Rename your property (recommended):

protected bool isNew;


Set your whole assembly to be non CLS compliant:

[assembly:CLSCompliant(false)]


Add an attribute just to your property:

[CLSCompliant(false)]protected bool _isNew;


Change the scope of the property, so that it can not be seen outside the assembly.

private bool _isNew;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐