StringBuilderExtensionsLastIndexOf(StringBuilder, String, StringComparison) Method
Searches for the specified string in the source StringBuilder,
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,
string value,
StringComparison stringComparison
)
<ExtensionAttribute>
Public Shared Function LastIndexOf (
sb As StringBuilder,
value As String,
stringComparison As StringComparison
) As Integer
Dim sb As StringBuilder
Dim value As String
Dim stringComparison As StringComparison
Dim returnValue As Integer
returnValue = sb.LastIndexOf(value,
stringComparison)
public:
[ExtensionAttribute]
static int LastIndexOf(
StringBuilder^ sb,
String^ value,
StringComparison stringComparison
)
[<ExtensionAttribute>]
static member LastIndexOf :
sb : StringBuilder *
value : string *
stringComparison : StringComparison -> int
No code example is currently available or this language may not be supported.
- sb StringBuilder
-
The source StringBuilder.
- value String
-
The character to find.
- 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).