DictionaryPool.

Acquire<TKey, TValue>() Method

Summary

Returns a spare System.Collections.Generic.Dictionary`2 if there are any, or creates a new one.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
DictionaryPool

Syntax

public static Dictionary<TKey, TValue> Acquire<TKey, TValue>()

Remarks

Remember to Animancer.DictionaryPool.Release``2(System.Collections.Generic.Dictionary{``0,``1}) it when you are done.

Type Parameters

Name Description
TKey
TValue

Return Value

Type Description
Dictionary<TKey, TValue>