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
x
ItemTypeThe first object of type
T
to compare.y
ItemTypeThe second object of type
T
to 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
obj
is a reference type andobj
is null.