StringUtilities..::..LastIndexOf Method (StringBuilder, String, Nullable<(Of <(<'Int32>)>)>)

Returns the index of the last occurrence of a substring in the StringBuilder, or -1 if not found.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static int LastIndexOf(
	this StringBuilder stringBuilder,
	string value,
	Nullable<int> startIndex
)
<ExtensionAttribute> _
Public Shared Function LastIndexOf ( _
	stringBuilder As StringBuilder, _
	value As String, _
	startIndex As Nullable(Of Integer) _
) As Integer

Parameters

stringBuilder
Type: StringBuilder
The StringBuilder to search.
value
Type: String
The substring to seek.
startIndex
Type: Nullable<(Of <(<'Int32>)>)>
The starting index for the search (searches backward from here).

Return Value

The zero-based index position of value if found; otherwise, -1.