7 private bool isDesignOnly;
28 this.isDesignOnly = isDesignOnly;
43 public override bool Equals(
object obj)
50 if (designOnlyAttribute !=
null)
52 return designOnlyAttribute.isDesignOnly == isDesignOnly;
61 return isDesignOnly.GetHashCode();
DesignOnlyAttribute(bool isDesignOnly)
Initializes a new instance of the T:System.ComponentModel.DesignOnlyAttribute class.
override bool Equals(object obj)
Returns whether the value of the given object is equal to the current T:System.ComponentModel....
Represents the base class for custom attributes.
override bool IsDefaultAttribute()
Determines if this attribute is the default.
static readonly DesignOnlyAttribute No
Specifies that a property can be set at design time or at run time. This static field is read-only.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
Specifies whether a property can only be set at design time.
bool IsDesignOnly
Gets a value indicating whether a property can be set only at design time.
static readonly DesignOnlyAttribute Yes
Specifies that a property can be set only at design time. This static field is read-only.
static readonly DesignOnlyAttribute Default
Specifies the default value for the T:System.ComponentModel.DesignOnlyAttribute, which is F:System....
override int GetHashCode()
Returns the hash code for this instance.