Class ArrayEqualityComparer<T>
- Namespace
- Lime
- Assembly
- Lime.dll
public class ArrayEqualityComparer<T> : IEqualityComparer<T[]>
Type Parameters
T
- Inheritance
-
ArrayEqualityComparer<T>
- Implements
-
IEqualityComparer<T[]>
- Inherited Members
Constructors
ArrayEqualityComparer(IEqualityComparer<T>)
public ArrayEqualityComparer(IEqualityComparer<T> elementComparer)
Parameters
elementComparer
IEqualityComparer<T>
Fields
Default
public static readonly ArrayEqualityComparer<T> Default
Field Value
Methods
Equals(T[], T[])
Determines whether the specified objects are equal.
public bool Equals(T[] x, T[] y)
Parameters
x
T[]The first object of type
T
to compare.y
T[]The second object of type
T
to compare.
Returns
GetHashCode(T[])
Returns a hash code for the specified object.
public int GetHashCode(T[] x)
Parameters
x
T[]
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.