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