Show / Hide Table of Contents

Struct Statics.PredicateFromEquateAndValue<T, TEquate>

Built in Compare struct for runtime computations.

Implements
IFunc<T, System.Boolean>
Namespace: Towel
Assembly: Towel.dll
Syntax
public struct PredicateFromEquateAndValue<T, TEquate> : IFunc<T, bool> where TEquate : struct, IFunc<T, T, bool>
Type Parameters
Name Description
T

The generic type of the values to compare.

TEquate

The equality check function.

Constructors

| Improve this Doc View Source

PredicateFromEquateAndValue(T, TEquate)

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

Declaration
public PredicateFromEquateAndValue(T value, TEquate equate = default(TEquate))
Parameters
Type Name Description
T value

The value for future values to be compared against.

TEquate equate

The compare function.

Methods

| Improve this Doc View Source

Invoke(T)

Declaration
public bool Invoke(T a)
Parameters
Type Name Description
T a
Returns
Type Description
System.Boolean

Implements

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