[]
Provides extension methods for memoizing functions.
public static class FuncExtensions
Name | Description |
---|---|
Memoize<T, TResult>(Func<T, TResult>, bool, IEqualityComparer<T>, Func<T, bool>) | Memoizes a function with a single parameter. |
Memoize<T1, T2, TResult>(Func<T1, T2, TResult>, bool, Func<T1, T2, bool>) | Memoizes a function with two parameters. |
Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, bool) | Memoizes a function with three parameters. |
Memoize<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, bool, Func<T1, T2, T3, bool>) | Memoizes a function with three parameters, with a condition to determine if the result should be cached. |