Skip to content

Conversation

Fast-Nick
Copy link
Contributor

Summary

Changed the exception description to match 'startIndex' from String.Substring, because the behavior is identical (and original description on Array.FindIndex is arguably either wrong or vague and hard to understand).

Fixes: #9719

…startIndex' parameter on FindIndex methods

Changed it to match String.Substring, because the behavior is identical (and original description is arguably wrong or hard to understand).

Fixes: dotnet#9719
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 14, 2024
@ghost ghost added the area-System.Runtime label Mar 14, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime

Copy link

Learn Build status updates of commit d6c5f37:

✅ Validation status: passed

File Status Preview URL Details
xml/System/Array.xml ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Array.FindIndex has incorrect ArgumentOutOfRangeException description for 'startIndex' parameter.
1 participant