public int LastIndexOf(
ReadOnlySpan<char> value,
int startIndex,
int count,
StringComparison comparison = StringComparison.Ordinal
)
Public Function LastIndexOf (
value As ReadOnlySpan(Of Char),
startIndex As Integer,
count As Integer,
Optional comparison As StringComparison = StringComparison.Ordinal
) As Integer
public:
int LastIndexOf(
ReadOnlySpan<wchar_t> value,
int startIndex,
int count,
StringComparison comparison = StringComparison::Ordinal
)
member LastIndexOf :
value : ReadOnlySpan<char> *
startIndex : int *
count : int *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> int
If comparison is Ordinal, then no new string allocation occurs on any platforms.
If comparison is other than Ordinal, then depending on the targeted platform a new string allocation may occur. The .NET Core 3.0 and newer builds do not allocate a new string with any comparison values.