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 stringbuilder is in the cache then it will be returned and the cache emptied. subsequent calls will return a new stringbuilder. |
| GetStringAndRelease | ToString() the stringbuilder, 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 stringbuilder should not be used after it has been released. Unbalanced Releases are perfectly acceptable. It will merely cause the runtime to create a new stringbuilder next time Acquire is called. |
Top
See Also