Export (0) Print
Expand All

BaseShadow.TransferArray Method

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].

Show:
© 2014 Microsoft