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.
파일 보기 프로젝트 열기: rabbal/Decision

공개 메소드들

메소드 설명
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