C# Класс Decision.Common.Experimental.ObjectPool.Pools.StringBuilderPool

Copied from Microsoft Roslyn code at http://source.roslyn.codeplex.com/#Microsoft.CodeAnalysis.Workspaces/Formatting/StringBuilderPool.cs,039ef0c630df07c3 A pool of StringBuilder objects.
Показать файл Открыть проект

Открытые методы

Метод Описание
Allocate ( ) : StringBuilder

Allocates an instance of StringBuilder from the object pool.

Free ( StringBuilder stringBuilder ) : void

Frees the specified string builder back to the object pool.

ReturnAndFree ( StringBuilder stringBuilder ) : string

Returns the string representation of the stringBuilder and frees it back to the object pool.

Описание методов

Allocate() публичный статический Метод

Allocates an instance of StringBuilder from the object pool.
public static Allocate ( ) : StringBuilder
Результат System.Text.StringBuilder

Free() публичный статический Метод

Frees the specified string builder back to the object pool.
public static Free ( StringBuilder stringBuilder ) : void
stringBuilder System.Text.StringBuilder The string builder.
Результат void

ReturnAndFree() публичный статический Метод

Returns the string representation of the stringBuilder and frees it back to the object pool.
public static ReturnAndFree ( StringBuilder stringBuilder ) : string
stringBuilder System.Text.StringBuilder The string builder.
Результат string