Class UShortEqualityComparer

An equality comparer for type ushort, also known as System.UInt16.

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

Implements

System.Collections.Generic.IEqualityComparer<System.UInt16>

Bases

object

Property overview

Default

Method overview

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

Property details

S UShortEqualityComparer DefaultAccess: Read-Only

Value:

Method details

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