Class WeakReferencePool<TKey, TValue>
- Namespace
- Lime
- Assembly
- Lime.dll
public class WeakReferencePool<TKey, TValue> where TValue : class
Type Parameters
TKey
TValue
- Inheritance
-
WeakReferencePool<TKey, TValue>
- Inherited Members
Constructors
WeakReferencePool(CreateItemDelegate)
public WeakReferencePool(WeakReferencePool<TKey, TValue>.CreateItemDelegate createItem)
Parameters
createItem
WeakReferencePool<TKey, TValue>.CreateItemDelegate
WeakReferencePool(CreateItemDelegate, IEqualityComparer<TKey>, bool)
public WeakReferencePool(WeakReferencePool<TKey, TValue>.CreateItemDelegate createItem, IEqualityComparer<TKey> comparer, bool trackResurrection)
Parameters
createItem
WeakReferencePool<TKey, TValue>.CreateItemDelegatecomparer
IEqualityComparer<TKey>trackResurrection
bool
Methods
GetItem(TKey)
public TValue GetItem(TKey key)
Parameters
key
TKey
Returns
- TValue
TryRemoveItem(TKey)
public bool TryRemoveItem(TKey key)
Parameters
key
TKey