Click or drag to resize

StringBuilderCache Class

[FB] See comments at the top of the file. From CoreFX (https://github.com/dotnet/corefx/blob/bffef76f6af208e2042a2f27bc081ee908bb390b/src/Common/src/System/IO/StringBuilderCache.cs), adjusted the max size. Also added support for multiple cached instances, and it returns the instance with the minimal size matching the requested size
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesStringBuilderCache

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax
public static class StringBuilderCache

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