Export (0) Print
Expand All
Expand Minimize

Type.IsByRef Property

Gets a value indicating whether the Type is passed by reference.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

abstract IsByRef : bool with get 
override IsByRef : bool with get

Property Value

Type: System.Boolean
true if the Type is passed by reference; otherwise, false.

Implements

_Type.IsByRef

To get to the actual type, dereference the type that was passed by reference, and then call GetElementType on that type.

The following example demonstrates a use of the IsByRef property to check whether a specified type is passed by reference. The example defines the class MyTypeDelegator, which overrides the HasElementTypeImpl method. The main class checks for the HasElementType property and displays the element type.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft