TypeName.MakeArrayTypeName(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.