Table of Contents

Class ImmutableValue

Namespace
The.Values
Assembly
Instagile.dll

Represents an immutable value that never changes.

public class ImmutableValue : IHasChanges, INotifyValueChanged
Inheritance
ImmutableValue
Implements
Derived
Inherited Members

Constructors

ImmutableValue()

Initializes a new instance of the ImmutableValue class.

protected ImmutableValue()

Fields

Instance

Gets the singleton instance of the immutable value.

public static readonly ImmutableValue Instance

Field Value

ImmutableValue

Methods

HasChanges()

Always returns false. Immutable values never change.

public bool HasChanges()

Returns

bool

MarkUnchanged()

Does nothing. Immutable values never change.

public void MarkUnchanged()

NeedsSave()

Always returns false. Immutable values never need saving.

public bool NeedsSave()

Returns

bool

Events

ValueChanged

Occurs when the value changes. Never raised for immutable values.

public event EventHandler? ValueChanged

Event Type

EventHandler