Edit

Share via


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
Source:
EnumBuilder.cs

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

public:
 override Type ^ MakeArrayType();
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The code for an array of the specified type might not be available.")]
public override Type MakeArrayType();
public override Type MakeArrayType();
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The code for an array of the specified type might not be available.")>]
override this.MakeArrayType : unit -> Type
override this.MakeArrayType : unit -> Type
Public Overrides Function MakeArrayType () As Type

Returns

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

Attributes

See also

Applies to

MakeArrayType(Int32)

Source:
EnumBuilder.cs
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.

public:
 override Type ^ MakeArrayType(int rank);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The code for an array of the specified type might not be available.")]
public override Type MakeArrayType(int rank);
public override Type MakeArrayType(int rank);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The code for an array of the specified type might not be available.")>]
override this.MakeArrayType : int -> Type
override this.MakeArrayType : int -> Type
Public Overrides Function MakeArrayType (rank As Integer) As Type

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.

Attributes

Exceptions

rank is less than 1.

See also

Applies to