StringBuilderPool Class

Summary

An Animancer.ObjectPool`1 for System.Text.StringBuilder.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
graph BT Type-->Base0["ObjectPool<StringBuilder>"] Base0-->Base1["Object"] Type["StringBuilderPool"] class Type type-node

Syntax

public class StringBuilderPool : ObjectPool<StringBuilder>

Fields

Name Constant Value Summary
Instance
Singleton.
static

Methods

Name Value Summary
Acquire() StringBuilder
Returns a spare item if there are any, or creates a new one.
New() StringBuilder
Creates a new() instance of T.
Release(StringBuilder) void
Adds the `item` to the list of spares so it can be reused.