StringBuilderCache Class Members
In This Topic
The following tables list the members exposed by StringBuilderCache.
Public Methods
| Name | Description |
| Acquire | Get a string builder to use of a particular size. It can be called any number of times, if a string builder is in the cache then it will be returned and the cache emptied. subsequent calls will return a new string builder. |
| GetStringAndRelease | ToString() the string builder, Release it to the cache and return the resulting string |
| Release | Place the specified builder in the cache if it is not too big. The string builder should not be used after it has been released. Unbalanced Releases are perfectly acceptable. It will merely cause the runtime to create a new string builder next time Acquire is called. |
Top
See Also