SetPool Class

Summary

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

Syntax

public static class SetPool

Methods

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