-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
src/mono/netcore/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs
Outdated
Show resolved
Hide resolved
src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.Mono.cs
Outdated
Show resolved
Hide resolved
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)!; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failures are #39484 |
* Annotate and adjust more of CoreLib for trimming * Update CustomAttribute.cs * Update TypeBuilder.Mono.cs
No description provided.