DictionaryPool.

Release<TKey, TValue>(Dictionary<TKey, TValue>) Method

Summary

Clears the `dictionary`, adds it to the list of spares so it can be reused, and sets it to null.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
DictionaryPool

Syntax

public static void Release<TKey, TValue>(ref Dictionary<TKey, TValue> dictionary)

Type Parameters

Name Description
TKey
TValue

Parameters

Name Type Description
dictionary Dictionary<TKey, TValue>

Return Value

Type Description
void