Violation of CLS rule Identifier
suggest changeusing System;
[assembly:CLSCompliant(true)]
namespace CLSDoc
{
public class Car
{
//Warning CS3008 Identifier '_age' is not CLS-compliant
public int _age = 0;
}
}
A public identifier in a CLS-compliant assembly cannot start with _.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents