Class EnumerableComparer<T>
Compares two sequences.
Implements
IComparer<IEnumerable<T>>
Inherited Members
Namespace: PoeShared.Scaffolding
Assembly: PoeShared.dll
Syntax
public class EnumerableComparer<T> : IComparer<IEnumerable<T>>
Type Parameters
| Name | Description |
|---|---|
| T | Type of item in the sequences. |
Remarks
Compares elements from the two input sequences in turn. If we run out of list before finding unequal elements, then the shorter list is deemed to be the lesser list.
Constructors
| Name | Description |
|---|---|
| EnumerableComparer() | Initializes a new instance of the EnumerableComparer<T> class using the default comparer for {T}. |
| EnumerableComparer(IComparer<T>) | Initializes a new instance of the EnumerableComparer<T> class using the specified comparer for {T}. |
Methods
| Name | Description |
|---|---|
| Compare(IEnumerable<T>, IEnumerable<T>) | Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. |