Mono Class Library: System.Type Overview | Members

System.Type.MakeArrayType Method

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

public virtual Type MakeArrayType (int rank)

Parameters

rank
The number of dimensions for the array.

Returns

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

Exceptions

TypeReason
IndexOutOfRangeExceptionrank is invalid (being less than 1, for example).

Remarks

This method provides a way to generate an array with any possible element type, including generic types.

Requirements

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