Table of Contents

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 int

The capacity of the string builder.

Properties

StringBuilder

The string builder.

public StringBuilder StringBuilder { get; }

Property Value

StringBuilder

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.