EnumBuilder.MakeArrayType Method (Int32)

 

Returns a Type object representing an array of the current type, with the specified number of dimensions.

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

public override Type MakeArrayType(
	int rank
)

Parameters

rank
Type: System.Int32

The number of dimensions for the array. This number must be less than or equal to 32.

Return Value

Type: System.Type

An object representing an array of the current type, with the specified number of dimensions.

Exception Condition
IndexOutOfRangeException

rank is less than 1.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: