6 [AttributeUsage(
AttributeTargets.All, AllowMultiple =
true, Inherited =
true)]
9 private string baseTypeName;
11 private string typeName;
13 private string typeId;
25 public override object TypeId 31 string text = baseTypeName;
32 int num = text.IndexOf(
',');
35 text = text.Substring(0, num);
37 typeId = GetType().FullName + text;
46 typeName =
string.Empty;
47 baseTypeName =
string.Empty;
56 this.typeName = typeName;
57 this.baseTypeName = baseTypeName;
66 this.typeName = typeName;
83 public override bool Equals(
object obj)
90 if (editorAttribute !=
null && editorAttribute.typeName == typeName)
92 return editorAttribute.baseTypeName == baseTypeName;
101 return base.GetHashCode();
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
override int GetHashCode()
Returns the hash code for this instance.
Represents the base class for custom attributes.
abstract string AssemblyQualifiedName
Gets the assembly-qualified name of the type, which includes the name of the assembly from which this...
EditorAttribute(string typeName, Type baseType)
Initializes a new instance of the T:System.ComponentModel.EditorAttribute class with the type name an...
string EditorTypeName
Gets the name of the editor class in the P:System.Type.AssemblyQualifiedName format.
override object TypeId
Gets a unique ID for this attribute type.
string EditorBaseTypeName
Gets the name of the base class or interface serving as a lookup key for this editor.
Specifies the editor to use to change a property. This class cannot be inherited.
Represents type declarations: class types, interface types, array types, value types,...
EditorAttribute(Type type, Type baseType)
Initializes a new instance of the T:System.ComponentModel.EditorAttribute class with the type and the...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
EditorAttribute(string typeName, string baseTypeName)
Initializes a new instance of the T:System.ComponentModel.EditorAttribute class with the type name an...
override bool Equals(object obj)
Returns whether the value of the given object is equal to the current T:System.ComponentModel....
EditorAttribute()
Initializes a new instance of the T:System.ComponentModel.EditorAttribute class with the default edit...
Provides information about a specific culture (called a locale for unmanaged code development)....