Muokkaa

Jaa


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.

public:
 virtual bool Equals(System::Numerics::Vector<T> other);
public bool Equals (System.Numerics.Vector<T> other);
public readonly bool Equals (System.Numerics.Vector<T> other);
override this.Equals : System.Numerics.Vector<'T (requires 'T : struct)> -> bool
override this.Equals : System.Numerics.Vector<'T> -> bool
Public Function Equals (other As Vector(Of T)) As Boolean

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

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.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
public override readonly bool Equals (object? obj);
public override bool Equals (object? obj);
public override readonly bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

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