Freigeben über


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

Definition

Interpretiert einen Vector<T> als neuen Vector<T> neu.

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)

Typparameter

TFrom

Der Typ des Eingabevektors.

TTo

Der Vektortyp vector sollte als neu interpretiert werden.

Parameter

vector
Vector<TFrom>

Der Vektor, der neu interpretiert werden soll.

Gibt zurück

Vector<TTo>

vector wird als neuer Vector<T> neu interpretiert.

Ausnahmen

Der Typ von vector (TFrom) oder der Typ des Ziels (TTo) wird nicht unterstützt.

Gilt für: