Why is this name with an underscore not CLS Compliant?

前端 未结 8 1131
时光说笑
时光说笑 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:26

    It's the underscore. See this article.

    0 讨论(0)
  • 2020-12-01 12:29

    Because the name of the data member, _isNew, start's with an underscore.

    0 讨论(0)
提交回复
热议问题