System.ComponentModel.InheritanceAttribute.Equals C# (CSharp) Method

Equals() public method

public Equals ( object value ) : bool
value object
return bool
        public override bool Equals(object value) {
            if (value == this) {
                return true;
            }
            
            if (!(value is InheritanceAttribute)) {
                return false;
            }
            
            InheritanceLevel valueLevel = ((InheritanceAttribute)value).InheritanceLevel;
            return (valueLevel == inheritanceLevel);
        }