Class ArrayEqualityComparer<T>
An implementation to compare two arrays of the same
element type. This compares the elements in the order of the array.
The way to compare each element can be customized by specifying
the ElementComparer.
Inheritance
ArrayEqualityComparer<T>
Assembly: Libplanet.dll
Syntax
public class ArrayEqualityComparer<T> : IEqualityComparer<T[]> where T : IEquatable<T>
Type Parameters
| Name |
Description |
| T |
The element type of the array.
|
Constructors
|
Improve this Doc
View Source
ArrayEqualityComparer(Nullable<IEqualityComparer<T>>)
Declaration
public ArrayEqualityComparer(IEqualityComparer<T>? elementComparer = null)
Parameters
| Type |
Name |
Description |
| Nullable<IEqualityComparer<T>> |
elementComparer |
Optionally customize the way to compare each element.
|
Properties
|
Improve this Doc
View Source
ElementComparer
Optionally customizes the way to compare each element.
Declaration
public IEqualityComparer<T>? ElementComparer { get; }
Property Value
| Type |
Description |
| Nullable<IEqualityComparer<T>> |
|
Methods
|
Improve this Doc
View Source
Equals(T[], T[])
Declaration
public bool Equals(T[] x, T[] y)
Parameters
| Type |
Name |
Description |
| T[] |
x |
|
| T[] |
y |
|
Returns
|
Improve this Doc
View Source
GetHashCode(T[])
Declaration
public int GetHashCode(T[] obj)
Parameters
| Type |
Name |
Description |
| T[] |
obj |
|
Returns