-
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
Add System.Runtime.CompilerServices.IsExternalInit #37763
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Co-authored-by: Jan Kotas <[email protected]>
/// This class should not be used by developers in source code. | ||
/// </summary> | ||
[EditorBrowsable(EditorBrowsableState.Never)] | ||
public static class IsExternalInit |
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.
I just want to clarify... the issue lists the type as sealed
:
#34978 (comment)
but here it's static
. static
rather than sealed
was actually intended?
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.
Yes, after closer examination of other types used by the compiler in modreqs, we decided this should be a static class similar to IsVolatile
@stephentoub is this ready for merge or is further review needed? |
Ping @jaredpar |
Resolves #34978
The up to date description on how we want to do this is here: #34978 (comment)
Looking at some of the other compiler-known attributes used in modreqs, it seems like the class should be 'static' as well.
I think there is no boilerplate unit test to add for this one because the static class doesn't contain any members.