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

Move ReflectionCoreCallbacks into ReflectionAugments #109912

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

MichalStrehovsky
Copy link
Member

Leftover work identified in #109857.

Cc @dotnet/ilc-contrib

using Internal.Runtime;
using Internal.Runtime.Augments;

using EETypeElementType = Internal.Runtime.EETypeElementType;

namespace Internal.Reflection.Augments
{
public static class ReflectionAugments
Copy link
Member

Choose a reason for hiding this comment

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

Can this be internal and deleted from CompatibilitySuppressions.xml?

get
{
// Reflection needs to work as the exception code calls GetType() and GetType().ToString()
return ReflectionAugments.IsInitialized;
Copy link
Member

Choose a reason for hiding this comment

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

Should this check whether s_executionEnvironment is initialized?

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks!

@MichalStrehovsky MichalStrehovsky merged commit 2ac0743 into dotnet:main Nov 19, 2024
88 checks passed
@MichalStrehovsky MichalStrehovsky deleted the nocallbacks branch November 19, 2024 07:22
mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants