Class LambdaComparer<T>
Summary description for LambdaComparer.
Inheritance
System.Object
LambdaComparer<T>
Implements
System.Collections.Generic.IComparer<T>
Namespace: ImageVault.Common.Lib
Assembly: ImageVault.Common.dll
Syntax
public class LambdaComparer<T> : Object
Type Parameters
Name | Description |
---|---|
T |
Constructors
LambdaComparer(Func<T, T, Int32>)
Initializes a new instance of the LambdaComparer class.
Declaration
public LambdaComparer(Func<T, T, int> comparer)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T, T, System.Int32> | comparer |
Methods
Compare(T, T)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
public 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 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
|
Implements
System.Collections.Generic.IComparer<>