Struct Statics.CompareInvert<T, TCompare>
Inverts the results of a comparison.
Implements
IFunc<T, T, CompareResult>
Namespace: Towel
Assembly: Towel.dll
Syntax
public struct CompareInvert<T, TCompare> : IFunc<T, T, CompareResult> where TCompare : struct, IFunc<T, T, CompareResult>
Type Parameters
| Name | Description |
|---|---|
| T | The types being compared. |
| TCompare | The type of the compare function. |
Methods
| Improve this Doc View SourceInvoke(T, T)
Declaration
public CompareResult Invoke(T a, T b)
Parameters
| Type | Name | Description |
|---|---|---|
| T | a | |
| T | b |
Returns
| Type | Description |
|---|---|
| CompareResult |
Operators
| Improve this Doc View SourceImplicit(TCompare to Statics.CompareInvert<T, TCompare>)
Inverts a TCompare.
Declaration
public static implicit operator Statics.CompareInvert<T, TCompare>(TCompare compare)
Parameters
| Type | Name | Description |
|---|---|---|
| TCompare | compare | The |
Returns
| Type | Description |
|---|---|
| Statics.CompareInvert<T, TCompare> |