Class LambdaComparer<T>
Summary description for LambdaComparer.
Inheritance
System.Object
LambdaComparer<T>
Implements
System.Collections.Generic.IComparer<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Lib
Assembly: ImageVault.Common.dll
Syntax
public class LambdaComparer<T> : IComparer<T>
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<T>