Click or drag to resize

IImmutableObjectT Interface

Represents an object that can be configured as read only and thus made immutable. The origional 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.

Namespace: GSF.Immutable
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public interface IImmutableObject<out T> : IImmutableObject, 
	ICloneable
View Source

Type Parameters

T

The IImmutableObjectT type exposes the following members.

Properties
 NameDescription
Public propertyIsReadOnly Get/Sets if a class is readonly. Once it has been set as readonly, it is immutable and must be cloned to me modified.
(Inherited from IImmutableObject)
Top
Methods
 NameDescription
Public methodCloneCreates a new object that is a copy of the current instance.
(Inherited from ICloneable)
Public methodCloneEditable Makes a clone of this object and allows it to be edited.
Public methodCloneReadonly Makes a readonly clone of this object. Returns the same object if it is already marked as readonly.
Top
See Also