共用方式為


Vector.As<TFrom,TTo>(Vector<TFrom>) 方法

定義

Vector<T> 重新解譯為新的 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)

類型參數

TFrom

輸入向量的型別。

TTo

向量 vector 的類型應該重新解譯為 。

參數

vector
Vector<TFrom>

要轉換的向量。

傳回

Vector<TTo>

已將 vector 重新轉譯為新的 Vector<T>

例外狀況

不支援 vector (TFrom) 的類型,或目標 (TTo) 的類型。

適用於