PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Formatters Namespace/Unsafe­String­Builder Class/Unsafe­String­Builder Constructor/Unsafe­String­Builder Constructor (Int32, Boolean)

UnsafeStringBuilder Constructor (Int32, Boolean)

Initializes a new UnsafeStringBuilder and allocates a new buffer.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public UnsafeStringBuilder(
	int capacity = 2048,
	bool throwOnOverflow = true
)

Parameters

capacity (Optional)
Type: System.Int32
The capacity of the new UnsafeStringBuilder.
throwOnOverflow (Optional)
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.
See Also