RefParam<T> Struct

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

Holds the value and the name of a parameter whose type can be a ref struct, for a chain of checks.

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

Type parameters

T
The type of the parameter.

Remarks

Param.CheckRef starts a chain of checks, and returns an instance of this type. RefParamExtensions provides the checks. The RefParam<T>.Value property ends the chain.

This type is not available in the netstandard and .NET Framework builds of Louis, because their BCL has no RuntimeFeature.ByRefLikeGenerics.

Properties

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

Name

Available in: net10.0net11.0(not available in the other target frameworks of the package)

Gets the name of the parameter.

public string Name { get; }

Property value

string

Value

Available in: net10.0net11.0(not available in the other target frameworks of the package)

Gets the value of the parameter.

public T Value { get; }

Property value

T