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

[src] Remove a few MarshalAs attributes in various APIs. #20704

Merged
merged 5 commits into from
Jun 10, 2024

Conversation

rolfbjarne
Copy link
Member

In these cases the APIs in question aren't used in P/Invokes at the moment,
but that may change, so just make as much as we can blittable by removing any
MarshalAs attributes.

This code wasn't caught by the test because it's not included in the build.
These delegates are used in blocks, and thus aren't called directly from
native code (there's a blittable intermediate method). This means they don't
need the MarshalAs attribute.
These structs weren't caught by the test because they're not used in any
P/Invokes.

In any case it's good to make them blittable in case they one day end up in a
P/Invoke.
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent
Hash: [PR build]

@rolfbjarne rolfbjarne merged commit 9c2bd68 into xamarin:main Jun 10, 2024
29 checks passed
@rolfbjarne rolfbjarne deleted the blittable-misc branch June 10, 2024 17:11
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.

None yet

3 participants