Table of Contents

Class ChangedRef<T>

Namespace
DotBahn.Common.Models
Assembly
DotBahn.Common.dll

Represents a reference type that can be updated, tracking both the original and changed value.

public class ChangedRef<T> where T : class

Type Parameters

T

The 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.

public bool HasUpdate { get; }

Property Value

bool

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