Class ShortEqualityComparer

An equality comparer for type short, also known as System.Int16.

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

Implements

System.Collections.Generic.IEqualityComparer<System.Int16>

Bases

object

Property overview

Default

Method overview

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

Property details

S ShortEqualityComparer DefaultAccess: Read-Only

Value:

Method details

F bool Equals(System.Int16 item1, System.Int16 item2) Determine whether two shorts are equal
Returns:True if equal
Parameters:
item1:first short
item2:second short
F int GetHashCode(System.Int16 item) Get the hash code of this short, that is, itself
Returns:The same
Parameters:
item:The short