Immutable
|
public abstract class ImmutableObjectAutoBase<T> : ImmutableObjectBase<T> where T : ImmutableObjectAutoBase<T>
The ImmutableObjectAutoBaseT type exposes the following members.
Name | Description | |
---|---|---|
ImmutableObjectAutoBaseT | Initializes a new instance of the ImmutableObjectAutoBaseT class |
Name | Description | |
---|---|---|
IsReadOnly |
Gets/Sets if this class is immutable and thus read only. Once
setting to readonly, the class becomes immutable.
(Inherited from ImmutableObjectBaseT) |
Name | Description | |
---|---|---|
Clone |
Returns a clone of this class.
If the class is marked as readonly, it returns the current instance.
(Inherited from ImmutableObjectBaseT) | |
CloneEditable |
Creates a clone of this class that is editable.
A clone is always created, even if this class is already editable.
(Inherited from ImmutableObjectBaseT) | |
CloneMembersAsEditable |
Request that member fields be cloned and marked as editable.
(Overrides ImmutableObjectBaseTCloneMembersAsEditable) | |
CloneReadonly |
Makes a readonly clone of the object.
If the class is currently marked as readonly, the current instance is returned.
(Inherited from ImmutableObjectBaseT) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
SetMembersAsReadOnly |
Requests that member fields be set to readonly.
(Overrides ImmutableObjectBaseTSetMembersAsReadOnly) | |
TestForEditable |
Test if the class has been marked as readonly. Throws an exception if editing cannot occur.
(Inherited from ImmutableObjectBaseT) | |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Name | Description | |
---|---|---|
GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) | |
GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |