C# Class CodeProject.ObjectPool.Specialized.PooledStringBuilder

Pooled object prepared to work with StringBuilder instances.
Inheritance: PooledObject
Exibir arquivo Open project: pomma89/ObjectPool

Public Methods

Method Description
PooledStringBuilder ( int capacity ) : CodeProject.ObjectPool.Core

Builds a pooled string builder.

ToString ( ) : string

Returns a string that represents the current object.

Protected Methods

Method Description
ClearStringBuilder ( ) : void

Clears the StringBuilder property, using specific methods depending on the framework for which ObjectPool has been compiled.

OnReleaseResources ( ) : void

Releases the object's resources.

OnResetState ( ) : void

Reset the object state to allow this object to be re-used by other parts of the application.

Method Details

ClearStringBuilder() protected method

Clears the StringBuilder property, using specific methods depending on the framework for which ObjectPool has been compiled.
protected ClearStringBuilder ( ) : void
return void

OnReleaseResources() protected method

Releases the object's resources.
protected OnReleaseResources ( ) : void
return void

OnResetState() protected method

Reset the object state to allow this object to be re-used by other parts of the application.
protected OnResetState ( ) : void
return void

PooledStringBuilder() public method

Builds a pooled string builder.
public PooledStringBuilder ( int capacity ) : CodeProject.ObjectPool.Core
capacity int The capacity of the string builder.
return CodeProject.ObjectPool.Core

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string