public static int LastIndexOf(
this ReadOnlySpan<char> span,
ReadOnlySpan<char> value,
int startIndex,
int count,
StringComparison comparisonType
)<ExtensionAttribute>
Public Shared Function LastIndexOf (
span As ReadOnlySpan(Of Char),
value As ReadOnlySpan(Of Char),
startIndex As Integer,
count As Integer,
comparisonType As StringComparison
) As Integerpublic:
[ExtensionAttribute]
static int LastIndexOf(
ReadOnlySpan<wchar_t> span,
ReadOnlySpan<wchar_t> value,
int startIndex,
int count,
StringComparison comparisonType
)[<ExtensionAttribute>]
static member LastIndexOf :
span : ReadOnlySpan<char> *
value : ReadOnlySpan<char> *
startIndex : int *
count : int *
comparisonType : StringComparison -> int | ArgumentOutOfRangeException | span is not Empty and startIndex is less than zero or greater than or equal to the length of span - or - span is not Empty and count is negative or startIndex - count + 1 is less than zero. |
| ArgumentException | comparisonType is not a defined value of the StringComparison enum. |