Table of Contents

Class StringBuilderCache

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Provides cached reusable StringBuilder instances.

public static class StringBuilderCache
Inheritance
StringBuilderCache

Methods

Acquire(int)

Get a StringBuilder for the specified capacity.

GetScope(int)

Gets a StringBuilderScope instance that provides a cached StringBuilder instance and releases it back to the cache when the scope is disposed.

GetStringAndRelease(StringBuilder)

Returns the stringBuilder instance to the cache and returns the string value of the stringBuilder.

Release(StringBuilder)

Put the StringBuilder instance back into the cache.