Class ComparisonUtility
Provide a generic way to work with System.Comparison<T> related tasks.
Inheritance
System.Object
ComparisonUtility
Namespace: Cuemon.Collections.Generic
Assembly: Cuemon.Core.dll
Syntax
public static class ComparisonUtility
Methods
| Improve this DocDefault<T>(T, T, Func<T, Type>, Func<T, Object>)
Performs a default comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other.
Declaration
public static int Default<T>(T x, T y, Func<T, Type> typeSelector, Func<T, object> valueSelector)
Parameters
Type | Name | Description |
---|---|---|
T | x | The first object to compare. |
T | y | The second object to compare. |
System.Func<T, System.Type> | typeSelector | The function delegate that is used to select the System.Type of the objects to compare. |
System.Func<T, System.Object> | valueSelector | The function delegate that is used to select the value of |
Returns
Type | Description |
---|---|
System.Int32 | A signed integer that indicates the relative values of |
Type Parameters
Name | Description |
---|---|
T | The type of the objects to compare. |