Class PooledStringBuilder
- Namespace
- CodeProject.ObjectPool.Specialized
- Assembly
- CodeProject.ObjectPool.dll
Pooled object prepared to work with StringBuilder instances.
public class PooledStringBuilder : PooledObject, IDisposable, IEquatable<PooledObject>
- Inheritance
-
PooledStringBuilder
- Implements
- Inherited Members
Constructors
PooledStringBuilder(int)
Builds a pooled string builder.
public PooledStringBuilder(int capacity)
Parameters
capacity
intThe capacity of the string builder.
Properties
StringBuilder
The string builder.
public StringBuilder StringBuilder { get; }
Property Value
Methods
ClearStringBuilder()
Clears the StringBuilder property, using specific methods depending on the framework for which ObjectPool has been compiled.
protected void ClearStringBuilder()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.