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.10.10.0 (6.10.10.0)
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.