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

Annotate and adjust more of CoreLib for trimming #38865

Merged
merged 3 commits into from
Jul 18, 2020

Conversation

MichalStrehovsky
Copy link
Member

No description provided.

public virtual Type GetDefaultWriter()
{
Assembly resourceWriterAssembly = Assembly.Load("System.Resources.Writer, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
return resourceWriterAssembly.GetType("System.Resources.ResourceWriter", throwOnError: true)!;
return Type.GetType("System.Resources.ResourceWriter, System.Resources.Writer", throwOnError: true)!;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkotas split this into the 2 calls in https://github.com/dotnet/coreclr/pull/11314/files#diff-37ee6a4a589ffae33ce341f9c1a28133R136. Are we sure this is safe to collapse it back into a single Type.GetType call?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR was reconciling differences between multiple forked copies of the same code. I do not think there was a strong reason why I have changed this to Assembly.Load + GetType that was used in the other fork.

It should be ok to change it back to Type.GetType.

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the existing comments, LGTM

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jkotas
Copy link
Member

jkotas commented Jul 18, 2020

Failures are #39484

@jkotas jkotas merged commit 62f2588 into dotnet:master Jul 18, 2020
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
* Annotate and adjust more of CoreLib for trimming

* Update CustomAttribute.cs

* Update TypeBuilder.Mono.cs
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants