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 GetEnumerator when C# enumerator gets passed to native and back #1735

Merged
merged 5 commits into from
Sep 7, 2024

Conversation

manodasanW
Copy link
Member

We previously didn't handle the case where a C# enumerator gets passed to native and then gets passed back to C# as part of an IIterable implementation instead of just as an enumerator. We now handle this by unwrapping our adapter type.

Added tests to validate a couple different variations of this, only one was failing before this change.

Also adjusting some strings from previous PR.

Fixes #1733

@manodasanW manodasanW merged commit 3ee0ef2 into master Sep 7, 2024
10 checks passed
@manodasanW manodasanW deleted the manodasanw/fixenumerator branch September 7, 2024 21:20
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

Successfully merging this pull request may close these issues.

Unexpected type for enumerator with CollectionViewSource
1 participant