PostSharp 6.10 / / Post­Sharp Documentation / 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: (
public UnsafeStringBuilder(
	int capacity = 2048,
	bool throwOnOverflow = true


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