Why is this name with an underscore not CLS Compliant?

前端 未结 8 1133
时光说笑
时光说笑 2020-12-01 11:45

Why do I get the compiler warning

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

for the following code?

8条回答
  •  抹茶落季
    2020-12-01 12:14

    The leading _ is non-CLS compliant

    Microsoft StyleCop will analyze your code, and provide links to the relevent documents explaining why it is not CLS compliant.

提交回复
热议问题