Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​ImmutableObjectAttribute
Assembly: System.ComponentModel.Primitives
Inheritance: object → Attribute → ImmutableObjectAttribute
Specifies that an object has no subproperties capable of being edited. This class cannot be inherited.
Fields and Constants
public static readonly
ImmutableObjectAttribute
Default
Represents the default value for <see cref="T:System.ComponentModel.ImmutableObjectAttribute" /> .
public static readonly
ImmutableObjectAttribute
No
Specifies that an object has at least one editable subproperty. This <see langword="static" /> field is read-only.
public static readonly
ImmutableObjectAttribute
Yes
Specifies that an object has no subproperties that can be edited. This <see langword="static" /> field is read-only.
Properties
public
bool
Immutable
Gets whether the object is immutable.
public
object
TypeId
Methods
public
bool
Equals​(object obj)
Returns a value that indicates whether this instance is equal to a specified object.
Returns <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" /> .
obj
An <see cref="T:System.Object" /> to compare with this instance or a null reference ( <see langword="Nothing" /> in Visual Basic).
public
int
GetHashCode​()
Returns the hash code for this instance.
Returns A hash code for the current <see cref="T:System.ComponentModel.ImmutableObjectAttribute" /> .
public
bool
IsDefaultAttribute​()
Indicates whether the value of this instance is the default value.
Returns <see langword="true" /> if this instance is the default attribute for the class; otherwise, <see langword="false" /> .
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object