Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


TotalOrderIeee754Comparer<T> Struct

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.

Represents a comparison operation that compares floating-point numbers with IEEE 754 totalOrder semantic.

C#
public readonly struct TotalOrderIeee754Comparer<T> : IEquatable<System.Numerics.TotalOrderIeee754Comparer<T>>, System.Collections.Generic.IComparer<T>, System.Collections.Generic.IEqualityComparer<T> where T : IFloatingPointIeee754<T>

Type Parameters

T

The type of the numbers to be compared, must be an IEEE 754 floating-point type.

Inheritance
TotalOrderIeee754Comparer<T>
Implements

Methods

Compare(T, T)

Compares two numbers with IEEE 754 totalOrder semantic and returns a value indicating whether one is less than, equal to, or greater than the other.

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>)

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

GetHashCode()

Returns the hash code for this instance.

GetHashCode(T)

Returns a hash code for the specified number.

Applies to

Termék Verziók
.NET 8, 9, 10