dotnet / dotnet/dotnet-api-docs
string.LastIndexOf - State whether startIndex param is inclusive
Open
area-System.Runtime
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
The documentation for the `String.LastIndexOf` method needs to explicitly state whether the `startIndex` parameter is inclusive.
This is relevant for looping. If I call `LastIndexOf` repeatedly in a loop and set `index` to the position found, do I have to pass `index-1` on subsequent calls or just `index`?
Contributor guide
Assessment
This issue has not been assessed yet.