Summary
Clears the `dictionary` and puts it into the pool to be available for reuse, then sets the reference to null.
If `dictionary` is already null, this method will do nothing.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- WeaverUtilities
Syntax
public static void Release<TKey, TValue>(ref Dictionary<TKey, TValue> dictionary)
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
Parameters
Name | Type | Description |
---|---|---|
dictionary | Dictionary |
Return Value
Type | Description |
---|---|
void |