Class ChangedValue<T>
Represents a value type that can be updated, tracking both the original and changed value.
public class ChangedValue<T> where T : struct
Type Parameters
TThe value type.
- Inheritance
-
ChangedValue<T>
- Inherited Members
Constructors
ChangedValue()
public ChangedValue()
Properties
Actual
Gets the currently active value.
public T Actual { get; }
Property Value
- T
HasUpdate
Indicates if there is an updated value.
public bool HasUpdate { get; }
Property Value
Original
The original value.
public required T Original { get; init; }
Property Value
- T
Updated
The updated value, if available.
public T? Updated { get; set; }
Property Value
- T?