Essential C# CLSCompliantAttribute  Suggest an edit

Violation of CLS rule Identifier

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 _


Table Of Contents
22 Enum
25 GUID
107 Stream
108 Timers
142 CLSCompliantAttribute
  ↑ ↓ to navigate     ↵ to select     Esc to close