-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Convert several FCalls to QCalls, plus misc cleanup #45258
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
This is converting the few methods both us have been staring at a lot in last few days, and also deletes the unused arguments. |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] | ||
Type type) | ||
{ | ||
if (type is null) |
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.
Undid the sharing here. There was more lines duplicated than shared.
...clr/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Activator.RuntimeType.cs
Outdated
Show resolved
Hide resolved
if (type is null) | ||
{ | ||
throw new ArgumentNullException(nameof(type), SR.ArgumentNull_Type); | ||
} | ||
|
||
if (!(type is RuntimeType rt)) | ||
{ | ||
throw new SerializationException(SR.Format(SR.Serialization_InvalidType, type)); | ||
} |
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.
Same question as earlier
…ilerServices/RuntimeHelpers.CoreCLR.cs Co-authored-by: Stephen Toub <stoub@microsoft.com>
…imeType.cs Co-authored-by: Stephen Toub <stoub@microsoft.com>
No description provided.