Violation of CLS rule Identifier

suggest change
using System;

[assembly:CLSCompliant(true)]
namespace CLSDoc
{
   
    public class Car
    {
        //Warning CS3008  Identifier '_age' is not CLS-complian    
        public int _age = 0;    
    }

}

You can not start variable with _

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents