Skip to main content

StringBuilderCache

Reusable StringBuilder ThreadStatic Cache

Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class StringBuilderCache

Methods

Allocate()

View Source
Declaration
public static StringBuilder Allocate()
Returns

System.Text.StringBuilder

Free(StringBuilder)

View Source
Declaration
public static void Free(StringBuilder sb)
Parameters
TypeName
System.Text.StringBuildersb

ReturnAndFree(StringBuilder)

View Source
Declaration
public static string ReturnAndFree(StringBuilder sb)
Returns

System.String

Parameters
TypeName
System.Text.StringBuildersb