Click or drag to resize
FuncExtensions Class
Memoize extension functions for Func types.
Inheritance Hierarchy
SystemObject
  Beerendonk.MemoizationFuncExtensions

Namespace: Beerendonk.Memoization
Assembly: Memoization (in Memoization.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static class FuncExtensions
Methods
  NameDescription
Public methodStatic memberCode exampleMemoizeT, TResult(FuncT, TResult)

Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache of the mapping from arguments to results and, when calls with the same arguments are repeated often, has higher performance at the expense of higher memory use.

A limitless cache is used.

Public methodStatic memberCode exampleMemoizeT, TResult(FuncT, TResult, ICacheT, TResult)
Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache of the mapping from arguments to results and, when calls with the same arguments are repeated often, has higher performance at the expense of higher memory use.
Public methodStatic memberCode exampleMemoizeT1, T2, TResult(FuncT1, T2, TResult)

Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache of the mapping from arguments to results and, when calls with the same arguments are repeated often, has higher performance at the expense of higher memory use.

A limitless cache is used.

Public methodStatic memberCode exampleMemoizeT1, T2, TResult(FuncT1, T2, TResult, ICacheTupleT1, T2, TResult)
Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache of the mapping from arguments to results and, when calls with the same arguments are repeated often, has higher performance at the expense of higher memory use.
Public methodStatic memberCode exampleMemoizeT1, T2, T3, TResult(FuncT1, T2, T3, TResult)

Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache of the mapping from arguments to results and, when calls with the same arguments are repeated often, has higher performance at the expense of higher memory use.

A limitless cache is used.

Public methodStatic memberCode exampleMemoizeT1, T2, T3, TResult(FuncT1, T2, T3, TResult, ICacheTupleT1, T2, T3, TResult)
Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache of the mapping from arguments to results and, when calls with the same arguments are repeated often, has higher performance at the expense of higher memory use.
Top
See Also