Table of Contents

Class ChangedValue<T>

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

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

public class ChangedValue<T> where T : struct

Type Parameters

T

The 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

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?