Table of Contents

Class Variable<T>

Namespace
Utils.Objects
Assembly
Utils.dll

Provides validation helpers for mutable values that throw InvalidOperationException when null.

public class Variable<T> : CheckBase<T>

Type Parameters

T

Type of the value to validate.

Inheritance
Variable<T>
Inherited Members
Extension Methods

Constructors

Variable(T, string)

Initializes a new instance of the Variable<T> class.

public Variable(T value, string name = "")

Parameters

value T

Value to validate.

name string

Name of the value for diagnostics.

Methods

OnNull()

Handles the null-case for the value.

protected override void OnNull()