Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tiny regression in Enumerable.ElementAt #99437

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

stephentoub
Copy link
Member

This just moves a few ns around, mainly putting the check for IList before the check for Iterator, matching how it was previously.

Addresses ElementAt benchmarks in #99318, #99315, and #99417.

This just moves a few ns around, mainly putting the check for IList before the check for Iterator, matching how it was previously.
@stephentoub stephentoub merged commit da9528d into dotnet:main Mar 8, 2024
111 checks passed
@stephentoub stephentoub deleted the elementatfix branch March 8, 2024 13:40
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants