System.Reflection.Emit.TypeBuilder.MakeByRefType Method

Returns a Type object that represents the current type when passed as a ref parameter (ByRef in Visual Basic).

Syntax

public override Type MakeByRefType ()

Returns

A Type object that represents the current type when passed as a ref parameter (ByRef in Visual Basic).

Remarks

The TypeBuilder.MakeByRefType method provides a way to generate ref types (ByRef in Visual Basic) for parameter lists.

Note:

Using Microsoft intermediate language (MSIL) syntax, if the current System.Reflection.Emit.TypeBuilder represents MyType, then the type returned by this method would be MyType&.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0