Class DoubleEqualityComparer

An equalityComparer for double.

This class is a singleton and the instance can be accessed via the static Default property

Implements

System.Collections.Generic.IEqualityComparer<double>

Bases

object

Property overview

Default

Method overview

Equals(double item1, double item2) ,
Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetHashCode(double item) ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Property details

S DoubleEqualityComparer DefaultAccess: Read-Only

Value:

Method details

F bool Equals(double item1, double item2) Check if two doubles are equal
Returns:True if equal
Parameters:
item1:first double
item2:second double
F int GetHashCode(double item) Get the hash code of this double,
Returns:The same
Parameters:
item:The double