-
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
API Proposal: Add ref
field feature support to RuntimeFeature
class
#64165
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I do not think we need a feature flag for this. |
This was a request by the Roslyn team for down-level targeting. |
Tagging subscribers to this area: @dotnet/area-system-runtime-compilerservices Issue DetailsThis is desired to help Roslyn perform down-level targeting for the Proposed APInamespace System.Runtime.CompilerServices
{
public static partial class RuntimeFeature
{
+. public const string RefFields = nameof(RefFields);
}
}
|
ref
field feature flag in SPCL.ref
field feature flag in SPCL.
@jkotas I will leave this as "api-suggestion" until we get consensus on whether this is needed or not. I will however push a draft PR with the change in case it is needed. |
I though you meant
We have a clash of runtime and C# names here. We have Should this flag by called |
ref
field feature flag in SPCL.ref
field feature support to RuntimeFeature
class
@cston, @RikkiGibson FYI |
namespace System.Runtime.CompilerServices
{
public static partial class RuntimeFeature
{
public const string ByRefFields = nameof(ByRefFields);
}
} |
Background and motivation
This is desired to help Roslyn perform down-level targeting for the
ref
field support added in #63768.API Proposal
Implementation PR at #64167.
API Usage
Used by Roslyn to detect if a runtime supports
ref
fields.Alternative Designs
This is the typical way to indicate a feature to Roslyn.
Risks
None.
The text was updated successfully, but these errors were encountered: