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 handling of non-bidirectional MarshalMode.Default with collection marshalling #72075

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

elinor-fung
Copy link
Member

@elinor-fung elinor-fung commented Jul 13, 2022

Check for existence of the specific methods on the collection marshaller shape before trying to get information from them. For MarshalMode.Default, we use whatever is available, so the methods aren't required to exist.

@elinor-fung elinor-fung added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Jul 13, 2022
@elinor-fung elinor-fung added this to the 7.0.0 milestone Jul 13, 2022
@ghost ghost assigned elinor-fung Jul 13, 2022
@ghost
Copy link

ghost commented Jul 13, 2022

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Check for existence of the specific methods on the collection marshaller shape before trying to get information from them. For MarsrhalMode.Default, we use whatever is available, so the methods aren't required to exist.

Author: elinor-fung
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: 7.0.0

@elinor-fung
Copy link
Member Author

Failure is #70969

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 4c63062 into dotnet:main Jul 13, 2022
@elinor-fung elinor-fung deleted the defaultModeCollection branch July 13, 2022 23:02
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants