System.Type.MakeByRefType Method

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

Syntax

public virtual Type MakeByRefType ()

Returns

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

Remarks

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

Using the syntax of Microsoft intermediate language (MSIL), if the current Type object represents int, this method returns a Type object representing Int32&.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0