Class Variable<T>
Provides validation helpers for mutable values that throw InvalidOperationException when null.
public class Variable<T> : CheckBase<T>
Type Parameters
TType of the value to validate.
- Inheritance
-
CheckBase<T>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
valueTValue to validate.
namestringName of the value for diagnostics.
Methods
OnNull()
Handles the null-case for the value.
protected override void OnNull()