Class EnumerableSizeComparer<T>
Provides System.Collections.Generic.IEnumerable<T> size comparison.
Inheritance
System.Object
System.Collections.Generic.Comparer<T>
EnumerableSizeComparer<T>
Implements
System.Collections.Generic.IComparer<T>
System.Collections.IComparer
Inherited Members
System.Collections.Generic.Comparer<T>.Create(System.Comparison<T>)
System.Collections.Generic.Comparer<T>.System.Collections.IComparer.Compare(System.Object, System.Object)
Namespace: Cuemon.Collections.Generic
Assembly: Cuemon.Core.dll
Syntax
public class EnumerableSizeComparer<T> : Comparer<T>, IComparer<T>, IComparer where T : IEnumerable
Type Parameters
Name | Description |
---|---|
T | The System.Collections.Generic.IEnumerable<T> type to compare. |
Properties
| Improve this DocDefault
Returns a default comparer for the type specified by the generic argument.
Declaration
public static IComparer<T> Default { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<T> |
Methods
| Improve this DocCompare(T, T)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
public override int Compare(T x, T y)
Parameters
Type | Name | Description |
---|---|---|
T | x | The first object to compare. |
T | y | The second object to compare. |
Returns
Type | Description |
---|---|
System.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. |
Overrides
System.Collections.Generic.Comparer<T>.Compare(T, T)
Implements
System.Collections.Generic.IComparer<T>
System.Collections.IComparer