Class IntEqualityComparer

An equalityComparer for System.Int32 integers.

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

Implements

System.Collections.Generic.IEqualityComparer<int>

Bases

object

Property overview

Default

Method overview

Equals(int int1, int int2) ,
Equals(object obj), Inherited from object ,
Finalize(), Inherited from object ,
GetHashCode(int item) ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
ToString(), Inherited from object

Property details

S IntEqualityComparer DefaultAccess: Read-Only

Value:

Method details

F bool Equals(int int1, int int2) Determine whether two integers are equal
Returns:True if equal
Parameters:
int1:first integer
int2:second integer
F int GetHashCode(int item) Get the hash code of this integer, that is, itself
Returns:The same
Parameters:
item:The integer