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 non-generic ICollection interface calls not working #1303

Merged
merged 5 commits into from
Mar 16, 2023

Conversation

manodasanW
Copy link
Member

@manodasanW manodasanW commented Mar 16, 2023

We previously had support for handling the ICollection<> interface. But we were missing the non-generic ICollection interface. This causes IDIC casts to that interface to fail which is used by IList. Resolving it by handling it similarly to ICollection<> via our IDIC hybrid collection support.

Note, I did a review of the other interfaces and found out that the non-generic IEnumerator might also be affected in some scenarios. Tracking that separately with #1302 given it has the possibility of requiring a change to our API surface.

@manodasanW manodasanW requested a review from ujjwalchadha March 16, 2023 16:53
@manodasanW manodasanW merged commit 8a3a277 into master Mar 16, 2023
@manodasanW manodasanW deleted the manodasanw/fixICollection branch March 16, 2023 22:35
dongle-the-gadget pushed a commit to dongle-the-gadget/CsWinRT that referenced this pull request Jul 29, 2023
* Fix IDIC casts not working with ICollection interface given we didn't have adapter for it.

* Test seems to be passing after past IDIC refactor.

* Add more tests and fix issue with Clear

* Handle IDIC cast to ICollection and fix namespaces
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.

4 participants