Interface IComparer<TLeft, TRight>
Defines a method that compares two objects that can be of different types. It is otherwise similar to IComparer<T>, except that there is no default comparer.
Namespace: actionETL
Assembly: actionETL.dll
Syntax
public interface IComparer<TLeft, TRight>
Type Parameters
| Name | Description |
|---|---|
| TLeft | The type of the left instance to compare. |
| TRight | The type of the right instance to compare. |
Methods
Compare(TLeft, TRight)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
int Compare(TLeft left, TRight right)
Parameters
| Type | Name | Description |
|---|---|---|
| TLeft | left | The left (or first) parameter. |
| TRight | right | The right (or second) parameter. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Int32 | A signed integer that indicates the relative values of
|