Constructor EnumerableComparer
EnumerableComparer()
Initializes a new instance of the EnumerableComparer<T> class using the default comparer for {T}.
Declaration
public EnumerableComparer()
EnumerableComparer(IComparer<T>)
Initializes a new instance of the EnumerableComparer<T> class using the specified comparer for {T}.
Declaration
public EnumerableComparer(IComparer<T> elementComparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer<T> | elementComparer | Comparer for comparing each pair of items from the sequences. |