Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BaseShadow::TransferArray Method (Array^, Type^, BaseShadow::ElementConverter^)

 

Performs a deep copy of an array of one Type into a similar array of different Type.

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

protected:
static Array^ TransferArray(
	Array^ source,
	Type^ targetType,
	BaseShadow::ElementConverter^ converter
)

Parameters

source
Type: System::Array^

The source array.

targetType
Type: System::Type^

The type of the target array.

converter
Type: Microsoft.VisualStudio.TestTools.UnitTesting::BaseShadow::ElementConverter^

The method which performs the conversion between the elements of the arrays.

Return Value

Type: System::Array^

An array with the same characteristics (rank and dimension limitations) as the original array.

Performs a deep copy of an array of one type into the same dimensioned array of a different type, for example arrayType1[2,3] to arrayType2[2,3]. The function looks deeply in array parameters, so that it also works on an array of arrays, for example arrayType1[2][3] to arrayType2[2][3].

Return to top
Show: