28 inheritanceLevel =
Default.inheritanceLevel;
35 this.inheritanceLevel = inheritanceLevel;
42 public override bool Equals(
object value)
53 return inheritanceLevel == this.inheritanceLevel;
60 return base.GetHashCode();
static readonly InheritanceAttribute Inherited
Specifies that the component is inherited. This field is read-only.
static readonly InheritanceAttribute NotInherited
Specifies that the component is not inherited. This field is read-only.
static readonly InheritanceAttribute InheritedReadOnly
Specifies that the component is inherited and is read-only. This field is read-only.
static TypeConverter GetConverter(object component)
Returns a type converter for the type of the specified component.
Represents the base class for custom attributes.
override bool IsDefaultAttribute()
Gets a value indicating whether the current value of the attribute is the default value for the attri...
InheritanceLevel
Defines identifiers for types of inheritance levels.
override bool Equals(object value)
Override to test for equality.
Indicates whether the component associated with this attribute has been inherited from a base class....
override int GetHashCode()
Returns the hashcode for this object.
Provides information about the characteristics for a component, such as its attributes,...
static readonly InheritanceAttribute Default
Specifies that the default value for T:System.ComponentModel.InheritanceAttribute is F:System....
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
InheritanceAttribute(InheritanceLevel inheritanceLevel)
Initializes a new instance of the T:System.ComponentModel.InheritanceAttribute class with the specifi...
string ConvertToString(object value)
Converts the specified value to a string representation.
override string ToString()
Converts this attribute to a string.
InheritanceAttribute()
Initializes a new instance of the T:System.ComponentModel.InheritanceAttribute class.