Class ItemTypeComparer
public class ItemTypeComparer : IEqualityComparer<ItemType>
- Inheritance
-
ItemTypeComparer
- Implements
- Inherited Members
Fields
Instance
public static readonly ItemTypeComparer Instance
Field Value
Methods
Equals(ItemType, ItemType)
Determines whether the specified objects are equal.
public bool Equals(ItemType x, ItemType y)
Parameters
xItemTypeThe first object of type
Tto compare.yItemTypeThe second object of type
Tto compare.
Returns
GetHashCode(ItemType)
Returns a hash code for the specified object.
public int GetHashCode(ItemType obj)
Parameters
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.