Class ScopedDictionary<TKey, TValue>
- Namespace
- Core.Collections.Scoped
- Assembly
- Core.dll
public sealed class ScopedDictionary<TKey, TValue> : Dictionary<TKey, TValue>, IPoolable
Type Parameters
TKeyTValue
- Inheritance
-
objectDictionary<TKey, TValue>ScopedDictionary<TKey, TValue>
- Implements
- Extension Methods
Methods
Dispose()
public void Dispose()
Get()
public static ScopedDictionary<TKey, TValue> Get()
Returns
- ScopedDictionary<TKey, TValue>
Get(Dictionary<TKey, TValue>)
public static ScopedDictionary<TKey, TValue> Get(Dictionary<TKey, TValue> initialElements)
Parameters
initialElementsDictionary<TKey, TValue>
Returns
- ScopedDictionary<TKey, TValue>
Get(IEnumerable<KeyValuePair<TKey, TValue>>)
public static ScopedDictionary<TKey, TValue> Get(IEnumerable<KeyValuePair<TKey, TValue>> initialElements)
Parameters
initialElementsIEnumerable<KeyValuePair<TKey, TValue>>
Returns
- ScopedDictionary<TKey, TValue>
Return(ScopedDictionary<TKey, TValue>)
public static void Return(ScopedDictionary<TKey, TValue> instance)
Parameters
instanceScopedDictionary<TKey, TValue>