PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Formatters Namespace/Unsafe­String­Builder Class/Unsafe­String­Builder Methods/Unsafe­String­Builder.​Truncate Method

UnsafeStringBuilder.Truncate Method

Truncates the string to a maximum length.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.7.0 (6.6.7.0)
Syntax
C#
public void Truncate(
	int length
)

Parameters

length
Type: System.Int32
The wished length of the string after truncation
See Also