Class StringBuilderCache
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 thestringBuilder
.
- Release(StringBuilder)
Put the StringBuilder instance back into the cache.