DictionaryPool Class

Summary

Convenience methods for accessing Animancer.DictionaryPool`2.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["DictionaryPool"] class Type type-node

Syntax

public static class DictionaryPool

Methods

Name Value Summary
Acquire<TKey, TValue>() Dictionary<TKey, TValue>
Returns a spare System.Collections.Generic.Dictionary`2 if there are any, or creates a new one.
static
Acquire<TKey, TValue>(Dictionary<TKey, TValue>) void
Returns a spare System.Collections.Generic.Dictionary`2 if there are any, or creates a new one.
static
Release<TKey, TValue>(Dictionary<TKey, TValue>) void
Clears the `dictionary` and adds it to the list of spares so it can be reused.
static
Release<TKey, TValue>(Dictionary<TKey, TValue>) void
Clears the `dictionary`, adds it to the list of spares so it can be reused, and sets it to null.
static