-
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
Add UnscopedRefAttribute
#72499
Add UnscopedRefAttribute
#72499
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. |
Tagging subscribers to this area: @dotnet/area-system-runtime-compilerservices |
...libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/UnscopedRefAttribute.cs
Outdated
Show resolved
Hide resolved
…deAnalysis/UnscopedRefAttribute.cs Co-authored-by: Sergio Pedri <sergio0694@live.com>
...libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/UnscopedRefAttribute.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Sergio Pedri <sergio0694@live.com>
...libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/UnscopedRefAttribute.cs
Show resolved
Hide resolved
...libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/UnscopedRefAttribute.cs
Outdated
Show resolved
Hide resolved
AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter, | ||
AllowMultiple = false, | ||
Inherited = false)] | ||
public sealed class UnscopedRefAttribute : Attribute |
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.
We can hold off on doing so until it's needed, but we may need to do the same visibility dance we do with other attributes that may get compiled into other projects downlevel, e.g.
Lines 14 to 18 in cd25e3b
#if SYSTEM_PRIVATE_CORELIB | |
public | |
#else | |
internal | |
#endif |
Fixes #72074
/cc @jaredpar @cston