Partager via


Vector.As<TFrom,TTo>(Vector<TFrom>) Méthode

Définition

Réinterprète un Vector<T> en tant que nouveau Vector<T>.

public:
generic <typename TFrom, typename TTo>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector<TTo> As(System::Numerics::Vector<TFrom> vector);
public:
generic <typename TFrom, typename TTo>
 where TFrom : value class where TTo : value class[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector<TTo> As(System::Numerics::Vector<TFrom> vector);
public static System.Numerics.Vector<TTo> As<TFrom,TTo>(this System.Numerics.Vector<TFrom> vector);
public static System.Numerics.Vector<TTo> As<TFrom,TTo>(this System.Numerics.Vector<TFrom> vector) where TFrom : struct where TTo : struct;
static member As : System.Numerics.Vector<'From> -> System.Numerics.Vector<'o>
static member As : System.Numerics.Vector<'From (requires 'From : struct)> -> System.Numerics.Vector<'o (requires 'o : struct)> (requires 'From : struct and 'o : struct)
<Extension()>
Public Function As(Of TFrom, TTo) (vector As Vector(Of TFrom)) As Vector(Of TTo)
<Extension()>
Public Function As(Of TFrom As Structure, TTo As Structure) (vector As Vector(Of TFrom)) As Vector(Of TTo)

Paramètres de type

TFrom

Type du vecteur d’entrée.

TTo

Le type du vecteur vector doit être réinterprété comme .

Paramètres

vector
Vector<TFrom>

Vecteur à réinterpréter.

Retours

Vector<TTo>

vector réinterprété en tant que nouveau Vector<T>.

Exceptions

Le type de vector (TFrom) ou le type de la cible (TTo) n’est pas pris en charge.

S’applique à