Skip to content

Move ReflectionCoreCallbacks into ReflectionAugments#109912

Merged
MichalStrehovsky merged 2 commits intodotnet:mainfrom
MichalStrehovsky:nocallbacks
Nov 19, 2024
Merged

Move ReflectionCoreCallbacks into ReflectionAugments#109912
MichalStrehovsky merged 2 commits intodotnet:mainfrom
MichalStrehovsky:nocallbacks

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

Leftover work identified in #109857.

Cc @dotnet/ilc-contrib


namespace Internal.Reflection.Augments
{
public static class ReflectionAugments
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2024
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.

2 participants