Show / Hide Table of Contents

Struct Statics.SiftFromCompareAndValue<T, TCompare>

Built in Compare struct for runtime computations.

Implements
IFunc<T, CompareResult>
Namespace: Towel
Assembly: Towel.dll
Syntax
public struct SiftFromCompareAndValue<T, TCompare> : IFunc<T, CompareResult> where TCompare : struct, IFunc<T, T, CompareResult>
Type Parameters
Name Description
T

The generic type of the values to compare.

TCompare

The compare function.

Constructors

| Improve this Doc View Source

SiftFromCompareAndValue(T, TCompare)

Creates a compile-time-resolved sifting function to be passed into another type.

Declaration
public SiftFromCompareAndValue(T value, TCompare compare = default(TCompare))
Parameters
Type Name Description
T value

The value for future values to be compared against.

TCompare compare

The compare function.

Methods

| Improve this Doc View Source

Invoke(T)

Declaration
public CompareResult Invoke(T a)
Parameters
Type Name Description
T a
Returns
Type Description
CompareResult

Implements

IFunc<T1, TResult>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX