Ref Class

Definition

A utility class to hold a value that can be used for ref returns APIs.

public class Ref<T> : Ref

Type parameters

T
Type of reference to hold.

Remarks

An instance of this class can be set as the ReturnValue (i.e. when calling CreateValueReturn(Object?, IArgumentCollection)) for cases where the method signature uses ref returns. See https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/ref-returns.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (1)

Operators (2)