Essential C# CLSCompliantAttribute  Suggest an edit

Violation of CLS rule Inherit from non CLSComplaint class

using System;

[assembly:CLSCompliant(true)]
namespace CLSDoc
{

    [CLSCompliant(false)]
    public class Animal
    {
        public int age = 0;
    }
  
    //Warning    CS3009    'Dog': base type 'Animal' is not CLS-compliant
    public class Dog : Animal
    {
    }

}

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