Class ChangedRef<T>
Represents a reference type that can be updated, tracking both the original and changed value
public class ChangedRef<T> where T : class
Type Parameters
TThe reference type
- Inheritance
-
ChangedRef<T>
- Inherited Members
Constructors
ChangedRef()
public ChangedRef()
Properties
Actual
Gets the currently active value
public T Actual { get; }
Property Value
- T
HasUpdate
Indicates if there is an updated value
[MemberNotNullWhen(true, "Updated")]
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