Class Comparison
Provides extensions for delegate
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public static class Comparison : object
Methods
| Improve this Doc View SourceAsValueFunc<T>(Comparison<T>, Boolean)
Converts comparison method into ValueFunc<T1, T2, R>.
Declaration
public static ValueFunc<T, T, int> AsValueFunc<T>(this Comparison<T> comparison, bool wrap = false)
Parameters
Type | Name | Description |
---|---|---|
DotNext.Comparison<T> | comparison | The delegate representing comparison method. |
Boolean | wrap | true to wrap |
Returns
Type | Description |
---|---|
ValueFunc<T, T, Int32> | The value delegate represeting comparison method. |
Type Parameters
Name | Description |
---|---|
T | The type of the object to compare. |