PostSharpAPI ReferencePost­Sharp.​Patterns.​FormattersUnsafe­String­BuilderSubstring
Open sandboxFocus

UnsafeStringBuilder.Substring Method

Substring(Int32)

Returns the substring starting at a given index and ending at the end of the current string.

Declaration
public string Substring(int startIndex)
Parameters
Type Name Description
Int32 startIndex

Index of the first character of the substring.

Returns
Type Description
System.String

The substring starting from startIndex.

Substring(Int32, Int32)

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

Declaration
public string Substring(int startIndex, int length)
Parameters
Type Name Description
Int32 startIndex

Index of the first character of the substring.

Int32 length

Number of characters to return.

Returns
Type Description
System.String

The substring starting from startIndex having length characters.