

























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;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。