PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Formatters Namespace / Unsafe­String­Builder Class / Unsafe­String­Builder Methods / Unsafe­String­Builder.​Substring Method / Unsafe­String­Builder.​Substring Method (Int32, Int32)

UnsafeStringBuilder.Substring Method (Int32, Int32)

Returns the substring starting at a given index and having a specified length.

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public string Substring(
	int startIndex,
	int length
)

Parameters

startIndex
Type: System.Int32
Index of the first character of the substring.
length
Type: System.Int32
Number of characters to return.

Return Value

Type: String
The substring starting from startIndex having length characters.
See Also