Version 3.0.0.2

Cache<T> class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public sealed class Cache<T> : ICache, IDisposable where T : class, new()
Inheritance
  • System.Object
  • Cache<T>

Type Parameters

T

Fields

Value
public T Value

Properties

IsFree
public bool IsFree { get; }
MaxCacheSize
public static int MaxCacheSize { get; set; }

Methods

Claim()
public static Cache<T> Claim()
Returns
Cache<T>

Release()
public void Release()
Release(Cache<T>)
public static void Release(Cache<T> cache)
Parameters
Cache<T> cache

Operators

Implicit(Cache<T> to T)
public static implicit operator T(Cache<T> cache)
Parameters
Cache<T> cache

Returns
T