Click or drag to resize

StringBuilderCache Methods

The StringBuilderCache type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAcquire
Acquires a string builder with the capacity specified. If no cached string builder is found with the requested capacity a new one is returned. If there are cached stringbuilders with at least the requested capacity, the one with the minimal capacity is returned.
Public methodStatic memberGetStringAndRelease
Gets the string from the string builder specified and calls release on it
Public methodStatic memberRelease
Releases the specified string builder and add it to the cache, if it's not at capacity already.
Top
See Also