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

.NET 9 adds a conflicting version of Index #1080

Open
atifaziz opened this issue Sep 22, 2024 · 0 comments
Open

.NET 9 adds a conflicting version of Index #1080

atifaziz opened this issue Sep 22, 2024 · 0 comments

Comments

@atifaziz
Copy link
Member

Index is landing in .NET 9. Unfortunately, it has an incompatible definition of the return value: Index in MoreLINQ returns a KeyValuePair<int, TSource> whereas Index in .NET returns (int Index, TSource Item). This means that the technique of merely hiding the extension method from a targeted build won't work for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant