5 [global::__DynamicallyInvokable]
12 [global::__DynamicallyInvokable]
13 public virtual object Value 15 [global::__DynamicallyInvokable]
25 [global::__DynamicallyInvokable]
39 [global::__DynamicallyInvokable]
47 [global::__DynamicallyInvokable]
55 [global::__DynamicallyInvokable]
63 [global::__DynamicallyInvokable]
71 [global::__DynamicallyInvokable]
79 [global::__DynamicallyInvokable]
87 [global::__DynamicallyInvokable]
95 [global::__DynamicallyInvokable]
103 [global::__DynamicallyInvokable]
111 [global::__DynamicallyInvokable]
121 [global::__DynamicallyInvokable]
129 if (defaultValueAttribute !=
null)
133 return Value.Equals(defaultValueAttribute.
Value);
135 return defaultValueAttribute.
Value ==
null;
142 [global::__DynamicallyInvokable]
145 return base.GetHashCode();
Specifies the default value for a property.
override int GetHashCode()
Returns the hash code for this instance.
static TypeConverter GetConverter(object component)
Returns a type converter for the type of the specified component.
Represents the base class for custom attributes.
DefaultValueAttribute(short value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a 16-bit ...
DefaultValueAttribute(int value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a 32-bit ...
DefaultValueAttribute(double value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a double-...
void SetValue(object value)
Sets the default value for the property to which this attribute is bound.
DefaultValueAttribute(object value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class.
virtual object Value
Gets the default value of the property this attribute is bound to.
DefaultValueAttribute(byte value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using an 8-bit ...
Represents type declarations: class types, interface types, array types, value types,...
Provides information about the characteristics for a component, such as its attributes,...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
DefaultValueAttribute(char value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a Unicode...
DefaultValueAttribute(bool value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a T:Syste...
DefaultValueAttribute(Type type, string value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class,...
DefaultValueAttribute(string value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a T:Syste...
DefaultValueAttribute(float value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a single-...
object ConvertFromInvariantString(string text)
Converts the given string to the type of this converter, using the invariant culture.
override bool Equals(object obj)
Returns whether the value of the given object is equal to the current T:System.ComponentModel....
DefaultValueAttribute(long value)
Initializes a new instance of the T:System.ComponentModel.DefaultValueAttribute class using a 64-bit ...