Class ImmutableValue
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
Methods
HasChanges()
Always returns false. Immutable values never change.
public bool HasChanges()
Returns
MarkUnchanged()
Does nothing. Immutable values never change.
public void MarkUnchanged()
NeedsSave()
Always returns false. Immutable values never need saving.
public bool NeedsSave()
Returns
Events
ValueChanged
Occurs when the value changes. Never raised for immutable values.
public event EventHandler? ValueChanged