EnumBuilder.MakeArrayType Method

Definition

Returns a Type object representing an array of the current type.

Overloads

MakeArrayType()

Returns a Type object representing a one-dimensional array of the current type, with a lower bound of zero.

MakeArrayType(Int32)

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

MakeArrayType()

Source:
EnumBuilder.cs
Source:
EnumBuilder.cs
Source:
EnumBuilder.cs

Returns a Type object representing a one-dimensional array of the current type, with a lower bound of zero.

C#
public override Type MakeArrayType();

Returns

A Type object representing a one-dimensional array of the current type, with a lower bound of zero.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1

MakeArrayType(Int32)

Source:
EnumBuilder.cs
Source:
EnumBuilder.cs
Source:
EnumBuilder.cs

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

C#
public override Type MakeArrayType(int rank);

Parameters

rank
Int32

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

Returns

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

Exceptions

rank is less than 1.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1