Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: #1184 (comment)

Previously we were using Assembly.Load() and Assembly.GetType(), which require us to ignore various trimmer warnings.

If we use Type.GetType() with a constant string instead, the trimmer knows how to handle this properly. (The code is also simpler.)

…ilder`

Context: dotnet#1184 (comment)

Previously we were using `Assembly.Load()` and `Assembly.GetType()`,
which require us to ignore various trimmer warnings.

If we use `Type.GetType()` with a constant string instead, the trimmer
knows how to handle this properly. (The code is also simpler.)
@jonpryor jonpryor merged commit c6e3893 into dotnet:main Feb 15, 2024
@jonathanpeppers jonathanpeppers deleted the MarshalMemberBuilder branch February 15, 2024 23:54
jonpryor pushed a commit to dotnet/android that referenced this pull request Feb 21, 2024
Changes: dotnet/java-interop@7d1e705...ae65609

  * dotnet/java-interop@ae656097: [Java.Interop] restore `IL2035` suppression (dotnet/java-interop#1195)
  * dotnet/java-interop@c6e38933: [Java.Interop] use `Type.GetType()` to find `MarshalMemberBuilder` (dotnet/java-interop#1193)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants