UnsafeStringBuilderPool Constructor |
Initializes a new UnsafeStringBuilderPool.
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
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.