ListPool Class

Summary

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

Syntax

public static class ListPool

Methods

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