MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeType­FactoryMake­Array­Type
Open sandboxFocus

TypeFactory.MakeArrayType Method

MakeArrayType(IType, Int32)

Creates an array type from the current type.

Declaration
public static IArrayType MakeArrayType(this IType elementType, int rank = 1)
Parameters
Type Name Description
IType elementType

Type of array elements.

System.Int32 rank

Rank of the array/.

Returns
Type Description
IArrayType

An array type T[] where T is the current type.