SpanParam<T> Struct

  • Obsolete: Types with embedded references are not supported in this version of your compiler.

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

[Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
public readonly ref struct SpanParam<T>

Type parameters

T
The type of the items of the span.

Remarks

Param.Check starts a chain of checks, and returns an instance of this type. SpanParamExtensions provides the checks. The SpanParam<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 Span<T> Value { get; }

Property value

Span<T>