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

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.