संपादित करें

इसके माध्यम से साझा किया गया


TotalOrderIeee754Comparer<T>.Equals Method

Definition

Overloads

Equals(TotalOrderIeee754Comparer<T>)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Determines whether this instance and a specified object are equal.

Equals(T, T)

Determines whether the specified numbers are equal.

Equals(TotalOrderIeee754Comparer<T>)

Source:
TotalOrderIeee754Comparer.cs
Source:
TotalOrderIeee754Comparer.cs

Indicates whether the current object is equal to another object of the same type.

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

Parameters

other
TotalOrderIeee754Comparer<T>

An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Implements

Applies to

Equals(Object)

Source:
TotalOrderIeee754Comparer.cs
Source:
TotalOrderIeee754Comparer.cs

Determines whether this instance and a specified object are equal.

public:
 override bool Equals(System::Object ^ obj);
public override 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 the current instance.

Returns

true if the current instance and obj are equal; otherwise, false. If obj is null, the method returns false.

Applies to

Equals(T, T)

Source:
TotalOrderIeee754Comparer.cs
Source:
TotalOrderIeee754Comparer.cs

Determines whether the specified numbers are equal.

public:
 virtual bool Equals(T x, T y);
public bool Equals (T? x, T? y);
override this.Equals : 'T * 'T -> bool
Public Function Equals (x As T, y As T) As Boolean

Parameters

x
T

The first number of type T to compare.

y
T

The second number of type T to compare.

Returns

true if the specified numbers are equal; otherwise, false.

Implements

Remarks

There is no corresponding equals semantic with totalOrder defined by IEEE 754 specification. This method returns true when Compare(T, T) returns 0.

Applies to