Redigera

Dela via


TypeName.MakeArrayTypeName(Int32) Method

Definition

Creates a TypeName object representing an array of the current type, with the specified number of dimensions.

public:
 System::Reflection::Metadata::TypeName ^ MakeArrayTypeName(int rank);
public System.Reflection.Metadata.TypeName MakeArrayTypeName(int rank);
member this.MakeArrayTypeName : int -> System.Reflection.Metadata.TypeName
Public Function MakeArrayTypeName (rank As Integer) As TypeName

Parameters

rank
Int32

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

Returns

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

Exceptions

rank is invalid, for example, 0 or negative.

Applies to