Skip to content

Fix GetEnumerator when C# enumerator gets passed to native and back#1735

Merged
manodasanW merged 5 commits into
masterfrom
manodasanw/fixenumerator
Sep 7, 2024
Merged

Fix GetEnumerator when C# enumerator gets passed to native and back#1735
manodasanW merged 5 commits into
masterfrom
manodasanw/fixenumerator

Conversation

@manodasanW
Copy link
Copy Markdown
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
@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