Udostępnij za pośrednictwem


Vector.As<TFrom,TTo>(Vector<TFrom>) Metoda

Definicja

Ponownie interpretuje element Vector<T> jako nowy Vector<T>element .

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)

Parametry typu

TFrom

Typ wektora wejściowego.

TTo

Typ wektora vector powinien zostać ponownie zinterpretowany jako.

Parametry

vector
Vector<TFrom>

Wektor do ponownej interpretacji.

Zwraca

Vector<TTo>

vector ponownie zinterpretowany jako nowy Vector<T>element .

Wyjątki

Typ vector (TFrom) lub typ elementu docelowego (TTo) nie jest obsługiwany.

Dotyczy