Class EnumerableSizeComparer<T>
- Namespace
- Cuemon.Collections.Generic
- Assembly
- Cuemon.Core.dll
Provides IEnumerable<T> size comparison.
public class EnumerableSizeComparer<T> : Comparer<T>, IComparer<T>, IComparer where T : IEnumerable
Type Parameters
T
The IEnumerable<T> type to compare.
- Inheritance
-
Comparer<T>EnumerableSizeComparer<T>
- Implements
-
IComparer<T>
- Inherited Members
Properties
Default
Returns a default comparer for the type specified by the generic argument.
public static IComparer<T> Default { get; }
Property Value
- IComparer<T>
Methods
Compare(T, T)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public override int Compare(T x, T y)
Parameters
x
TThe first object to compare.
y
TThe second object to compare.
Returns
- Int32
A signed integer that indicates the relative values of x and y, as explained here: Less than zero - x is less than y. Zero - x equals y. Greater than zero - x is greater than y.