BaseShadow.MakeArrayType Method

Returns a Type object that represents an array of the specified type, with the specified number of dimensions.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Shared Function MakeArrayType ( _
    elementType As Type, _
    rank As Integer _
) As Type
public static Type MakeArrayType(
    Type elementType,
    int rank
)
public:
static Type^ MakeArrayType(
    Type^ elementType, 
    int rank
)
static member MakeArrayType : 
        elementType:Type * 
        rank:int -> Type
public static function MakeArrayType(
    elementType : Type, 
    rank : int
) : Type

Parameters

  • elementType
    Type: Type

    The element type for the array.

  • rank
    Type: Int32

    The number of dimensions for the array.

Return Value

Type: Type
A Type object that represents an array of the specified type, with the specified number of dimensions.

.NET Framework Security

See Also

Reference

BaseShadow Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace