StringBuilderExtensionsLastIndexOf(StringBuilder, Char, Int32, Int32, StringComparison) Method
Searches for the specified character within a range of characters
in the source StringBuilder,
starting from the specified index,
and returns the zero-based index position of the last occurence.
Namespace: DevCase.Extensions.StringBuilderExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static int LastIndexOf(
this StringBuilder sb,
char value,
int startIndex,
int count,
StringComparison stringComparison
)
<ExtensionAttribute>
Public Shared Function LastIndexOf (
sb As StringBuilder,
value As Char,
startIndex As Integer,
count As Integer,
stringComparison As StringComparison
) As Integer
Dim sb As StringBuilder
Dim value As Char
Dim startIndex As Integer
Dim count As Integer
Dim stringComparison As StringComparison
Dim returnValue As Integer
returnValue = sb.LastIndexOf(value,
startIndex, count, stringComparison)
public:
[ExtensionAttribute]
static int LastIndexOf(
StringBuilder^ sb,
wchar_t value,
int startIndex,
int count,
StringComparison stringComparison
)
[<ExtensionAttribute>]
static member LastIndexOf :
sb : StringBuilder *
value : char *
startIndex : int *
count : int *
stringComparison : StringComparison -> int
No code example is currently available or this language may not be supported.
- sb StringBuilder
-
The source StringBuilder.
- value Char
-
The character to find.
- startIndex Int32
-
The starting position of the search.
- count Int32
-
The number of characters to search.
- stringComparison StringComparison
-
The string comparison to use for the search.
Int32
The zero-based index position of the specified character if found; otherwise, -1.
In Visual Basic and C#, you can call this method as an instance method on any object of type
StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).