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
x
ElementalTypeThe first object of type
T
to compare.y
ElementalTypeThe second object of type
T
to compare.
Returns
GetHashCode(ElementalType)
Returns a hash code for the specified object.
public int GetHashCode(ElementalType obj)
Parameters
obj
ElementalTypeThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.