Class FloatEqualityComparer

An equality comparer for type float, also known as System.Single.

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

Implements

System.Collections.Generic.IEqualityComparer<System.Single>

Bases

object

Property overview

Default

Method overview

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

Property details

S FloatEqualityComparer DefaultAccess: Read-Only

Value:

Method details

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