Method GetScope
GetScope(int)
Gets a StringBuilderScope instance that provides a cached StringBuilder instance and releases it back to the cache when the scope is disposed.
public static StringBuilderScope GetScope(int capacity = 16)
Parameters
capacity
intThe capacity of the StringBuilder instance to acquire.
Returns
- StringBuilderScope
A StringBuilderScope instance that provides a cached StringBuilder instance.