Op Englesch liesen Editéieren

Deelen iwwer


Vector<T>.Equals Method

Definition

Overloads

Equals(Vector<T>)

Returns a value that indicates whether this instance is equal to a specified vector.

Equals(Object)

Returns a value that indicates whether this instance is equal to a specified object.

Equals(Vector<T>)

Source:
Vector_1.cs
Source:
Vector_1.cs
Source:
Vector_1.cs

Returns a value that indicates whether this instance is equal to a specified vector.

C#
public bool Equals(System.Numerics.Vector<T> other);
C#
public readonly bool Equals(System.Numerics.Vector<T> other);

Parameters

other
Vector<T>

The vector to compare with this instance.

Returns

true if the current instance and other are equal; otherwise, false.

Implements

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 the current instance is equal to the corresponding value in other.

Applies to

.NET 10 an aner Versiounen
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

Equals(Object)

Source:
Vector_1.cs
Source:
Vector_1.cs
Source:
Vector_1.cs

Returns a value that indicates whether this instance is equal to a specified object.

C#
public override bool Equals(object obj);
C#
public override bool Equals(object? obj);
C#
public override readonly bool Equals(object? obj);
C#
public override readonly bool Equals(object obj);

Parameters

obj
Object

The object to compare with this instance.

Returns

true if the current instance and obj are equal; otherwise, false. The method returns false if obj is null, or if obj is a vector of a different type than the current instance.

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 the current instance is equal to the corresponding value in other.

Applies to

.NET 10 an aner Versiounen
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