Name
ImmutableObjectAttribute
Synopsis
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 }
Hierarchy
System.Object
→ System.Attribute → ImmutableObjectAttribute
Valid On
All
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.