Skip to main content

StringWriterCache

Reusable StringWriter ThreadStatic Cache

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

Methods

Allocate()

View Source
Declaration
public static StringWriter Allocate()
Returns

System.IO.StringWriter

Free(StringWriter)

View Source
Declaration
public static void Free(StringWriter writer)
Parameters
TypeName
System.IO.StringWriterwriter

ReturnAndFree(StringWriter)

View Source
Declaration
public static string ReturnAndFree(StringWriter writer)
Returns

System.String

Parameters
TypeName
System.IO.StringWriterwriter