PostSharp//API Reference/Post­Sharp.​Patterns.​Formatters/Unsafe­String­Builder­Pool/Unsafe­String­Builder­Pool
Open sandboxFocus

Constructor UnsafeStringBuilderPool

UnsafeStringBuilderPool(Int32, Boolean, Int32)

Initializes a new UnsafeStringBuilderPool.

public UnsafeStringBuilderPool(int stringBuilderCapacity, bool throwOnOverflow, int maxInstances = 32)
Type Name Description
Int32 stringBuilderCapacity

Maximal number of characters in the UnsafeStringBuilder in the pool.

Boolean throwOnOverflow

true if an OverflowException should be thrown when the buffer capacity is insufficient, false if the Append method should return false without exception.

Int32 maxInstances

Maximal number of instances in the pool. The default value is 32.