Version 2.1.0.0

DelegateExtensions class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public static class DelegateExtensions
Delegate method extensions.
Inheritance
  • System.Object
  • DelegateExtensions

Methods

Memoize<TResult>(Func<TResult>)
Memoizes the specified func - returns the memoized version
public static Func<TResult> Memoize<TResult>(this Func<TResult> getValue)
Parameters
System.Func<TResult> getValue

Returns
System.Func<TResult>

Type Parameters
TResult

Memoize<T, TResult>(Func<T, TResult>)
Memoizes the specified func - returns the memoized version
public static Func<T, TResult> Memoize<T, TResult>(this Func<T, TResult> func)
Parameters
System.Func<T, TResult> func

Returns
System.Func<T, TResult>

Type Parameters
T

TResult