Vector128.As<T,U>(Vector128<T>) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Reinterprets a Vector128<T> of type TFrom as a new Vector128<T> of type TTo.

public static System.Runtime.Intrinsics.Vector128<U> As<T,U> (this System.Runtime.Intrinsics.Vector128<T> vector) where T : struct where U : struct;
public static System.Runtime.Intrinsics.Vector128<TTo> As<TFrom,TTo> (this System.Runtime.Intrinsics.Vector128<TFrom> vector) where TFrom : struct where TTo : struct;
public static System.Runtime.Intrinsics.Vector128<TTo> As<TFrom,TTo> (this System.Runtime.Intrinsics.Vector128<TFrom> vector);

Type Parameters

T TFrom

The type of the input vector.

The type of the input vector.

U TTo

The type that the vector vector should be reinterpreted as.

The type that the vector vector should be reinterpreted as.

Parameters

vector
Vector128<T>

The vector to reinterpret.

Returns

Vector128<TTo>

vector reinterpreted as a Vector128<T> of type TTo.

Exceptions

The type of vector (TFrom) or the type of the target (TTo) is not supported.

Applies to

Proizvod Verzije
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9