Condividi tramite


Metodo BaseShadow.TransferArray

Esegue una copia completa di una matrice con un oggetto Type in una matrice simile con Type diverso.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Sintassi

'Dichiarazione
Protected Shared Function TransferArray ( _
    source As Array, _
    targetType As Type, _
    converter As BaseShadow.ElementConverter _
) As Array
protected static Array TransferArray(
    Array source,
    Type targetType,
    BaseShadow.ElementConverter converter
)
protected:
static Array^ TransferArray(
    Array^ source, 
    Type^ targetType, 
    BaseShadow::ElementConverter^ converter
)
static member TransferArray : 
        source:Array * 
        targetType:Type * 
        converter:BaseShadow.ElementConverter -> Array
protected static function TransferArray(
    source : Array, 
    targetType : Type, 
    converter : BaseShadow.ElementConverter
) : Array

Parametri

  • source
    Tipo: Array

    Matrice di origine.

  • targetType
    Tipo: Type

    Tipo della matrice di destinazione.

Valore restituito

Tipo: Array
Matrice con le stesse caratteristiche (limitazioni di classificazione e dimensione) della matrice originale.

Note

Esegue una copia completa di una matrice di un tipo nella stessa matrice dimensionata di un tipo diverso, ad esempio da arrayType1 [2,3] ad arrayType2 [2,3]. La funzione cerca i dettagli nei parametri di matrice, in modo che funzioni anche su una matrice di matrici, come ad esempio arrayType1 [2] [3] a arrayType2 [2] [3].

Sicurezza di .NET Framework

Vedere anche

Riferimenti

BaseShadow Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.UnitTesting