PostSharp 6.5 / / Post­Sharp Documentation / 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.5.19.0 (6.5.19.0)
Syntax
C#
public void Truncate(
	int length
)

Parameters

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