Param<T> Struct

Holds the value and the name of a parameter, for a chain of checks.

public readonly struct Param<T>

Type parameters

T
The type of the parameter.

Remarks

Param.Check and the CheckNotNull methods of Param start a chain of checks, and return an instance of this type. The Param<T>.Value property ends the chain.

Properties

NameDescription
NameGets the name of the parameter.
ValueGets the value of the parameter.

Name

Gets the name of the parameter.

public string Name { get; }

Property value

string

Value

Gets the value of the parameter.

public T Value { get; }

Property value

T