Skip to main content

StringWriterCacheAlt

Alternative Reusable StringWriter ThreadStatic Cache

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

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