Op Englesch liesen Editéieren

Deelen iwwer


Vector<T>.Equality(Vector<T>, Vector<T>) Operator

Definition

Returns a value that indicates whether each pair of elements in two specified vectors are equal.

C#
public static bool operator ==(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);

Parameters

left
Vector<T>

The first vector to compare.

right
Vector<T>

The second vector to compare.

Returns

true if left and right are equal; otherwise, false.

Exceptions

.NET 5 and later: Type T is not supported.

Remarks

Two vectors are equal if they are of the same type, have the same number of values, and each value in left is equal to the corresponding value in right.

Applies to

Produkt Versiounen
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0