PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Unsafe­String­Builder­Pool Class / Unsafe­String­Builder­Pool Constructor

UnsafeStringBuilderPool Constructor

Initializes a new UnsafeStringBuilderPool.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public UnsafeStringBuilderPool(
	int stringBuilderCapacity,
	bool throwOnOverflow,
	int maxInstances = 32
)

Parameters

stringBuilderCapacity
Type: System.Int32
Maximal number of characters in the UnsafeStringBuilder in the pool.
throwOnOverflow
Type: System.Boolean
true if an OverflowException should be thrown when the buffer capacity is insufficient, false if the Append method should return false without exception.
maxInstances (Optional)
Type: System.Int32
Maximal number of instances in the pool. The default value is 32.
See Also