Version 3.0.1.0

DelegateExtensions class

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

Methods

Memoize<TResult>(Func<TResult>)
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>)
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