Compartir a través de


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

Definición

Reinterpreta un elemento Vector<T> como un nuevo elemento Vector<T>.

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:
generic <typename TFrom, typename TTo>
[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) where TFrom : struct where TTo : struct;
public static System.Numerics.Vector<TTo> As<TFrom,TTo> (this System.Numerics.Vector<TFrom> vector);
static member As : System.Numerics.Vector<'From (requires 'From : struct)> -> System.Numerics.Vector<'o (requires 'o : struct)> (requires 'From : struct and 'o : struct)
static member As : System.Numerics.Vector<'From> -> System.Numerics.Vector<'o>
<Extension()>
Public Function As(Of TFrom As Structure, TTo As Structure) (vector As Vector(Of TFrom)) As Vector(Of TTo)
<Extension()>
Public Function As(Of TFrom, TTo) (vector As Vector(Of TFrom)) As Vector(Of TTo)

Parámetros de tipo

TFrom

Tipo del vector de entrada.

TTo

El tipo del vector vector debe ser reinterpretado como.

Parámetros

vector
Vector<TFrom>

Vector que se va a reinterpretar.

Devoluciones

Vector<TTo>

vector se reinterpreta como un nuevo elemento Vector<T>.

Excepciones

No se admite el tipo de vector (TFrom) o el tipo del destino (TTo).

Se aplica a