-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Method parameter names scoping change for nameof
#24068
Comments
@BillWagner when is a good time to start submitting PRs for C# 10 changes? (I would say: beginning of September?) |
I think we can start once these features are available in a public preview. I'm converting issues to notes when a feature is merged into the main branch in the roslyn repo. That should give us an idea how soon features will be available to use. |
The obvious example here is a method where a parameter has the |
@pkulikov I did assign this to me, but I'm happy to have others work on them. I just don't want to lose them in my queue. 😄 |
@jcouv This doesn't seem to be in .NET 6 preview 5. The roslyn feature status page shows it as in the main branch, but without a release target. Can you clarify? Is this available yet? |
The feature status page says the feature will go straight into |
@jcouv @BillWagner did this feature end up in C# 10? The roslyn lang feature status says it's in progress. |
|
I dropped the .NET 6 release label, and removed this issue from the related projects. I'll leave it open to address when the feature is available. |
Proposal is here: nameof(parameter)
A motivation for this is to enable nameof to name a parameter in an attribute constructor.
Effectively, the
nameof(p)
could findp
as a parameter name to a function defined in the current scope.Tasks:
The text was updated successfully, but these errors were encountered: