IImmutableObjectT Interface

Represents an object that can be configured as read only and thus made immutable. The original contents of this class will not be editable once IsReadOnly is set to true. In order to modify the contest of this object, a clone of the object must be created with CloneEditable.

Definition

Namespace: SnapDB.Immutables
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public interface IImmutableObject<out T> : IImmutableObject, 
	ICloneable
Implements
IImmutableObject, ICloneable

Type Parameters

T

Properties

IsReadOnly Gets or sets if a class is "read only". Once it has been set as "read only", it is immutable and must be cloned to be modified.
(Inherited from IImmutableObject)

Methods

CloneCreates a new object that is a copy of the current instance.
(Inherited from ICloneable)
CloneEditable Makes a clone of this object and allows it to be edited.
CloneReadonly Makes a read-only clone of this object. Returns the same object if it is already marked as read-only.

See Also