Click or drag to resize

ImmutableObjectAutoBaseT Class

Represents an object that can be configured as read only and thus made immutable. This class will automatically clone any field that implements IImmutableObject
Inheritance Hierarchy
SystemObject
  GSF.ImmutableImmutableObjectBaseT
    GSF.ImmutableImmutableObjectAutoBaseT

Namespace: GSF.Immutable
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public abstract class ImmutableObjectAutoBase<T> : ImmutableObjectBase<T>
where T : ImmutableObjectAutoBase<T>
View Source

Type Parameters

T

The ImmutableObjectAutoBaseT type exposes the following members.

Constructors
 NameDescription
Protected methodImmutableObjectAutoBaseTInitializes a new instance of the ImmutableObjectAutoBaseT class
Top
Properties
 NameDescription
Public propertyIsReadOnly Gets/Sets if this class is immutable and thus read only. Once setting to readonly, the class becomes immutable.
(Inherited from ImmutableObjectBaseT)
Top
Methods
 NameDescription
Public methodClone Returns a clone of this class. If the class is marked as readonly, it returns the current instance.
(Inherited from ImmutableObjectBaseT)
Public methodCloneEditable Creates a clone of this class that is editable. A clone is always created, even if this class is already editable.
(Inherited from ImmutableObjectBaseT)
Protected methodCloneMembersAsEditable Request that member fields be cloned and marked as editable.
(Overrides ImmutableObjectBaseTCloneMembersAsEditable)
Public methodCloneReadonly Makes a readonly clone of the object. If the class is currently marked as readonly, the current instance is returned.
(Inherited from ImmutableObjectBaseT)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodSetMembersAsReadOnly Requests that member fields be set to readonly.
(Overrides ImmutableObjectBaseTSetMembersAsReadOnly)
Protected methodTestForEditable Test if the class has been marked as readonly. Throws an exception if editing cannot occur.
(Inherited from ImmutableObjectBaseT)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also