March 2003
Intermediate to advanced
896 pages
32h 35m
English
ImmutableObjectAttribute
This attribute is applied to classes that have no editable properties, and can therefore be displayed as read-only in the designer.
Commonly, this is applied to expandable objects (see
ExpandableObjectConverter) whose properties should
be displayed as read-only in a
System.Windows.Forms.PropertyGrid.
public sealed class ImmutableObjectAttribute : Attribute { // Public Constructors public ImmutableObjectAttribute(bool immutable); // Public Static Fields public static readonly ImmutableObjectAttribute Default; // =System.ComponentModel.ImmutableObjectAttribute public static readonly ImmutableObjectAttribute No; // =System.ComponentModel.ImmutableObjectAttribute public static readonly ImmutableObjectAttribute Yes; // =System.ComponentModel.ImmutableObjectAttribute // Public Instance Properties public bool Immutable{get; } // Public Instance Methods public override bool Equals(object obj); // overrides Attribute public override int GetHashCode(); // overrides Attribute public override bool IsDefaultAttribute(); // overrides Attribute }
System.Object
→ System.Attribute → ImmutableObjectAttribute
All
Read now
Unlock full access