-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Local methods and delegates aren't populating ParameterInfo.DefaultValue #53478
Labels
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. |
dotnet-issue-labeler
bot
added
Area-Compilers
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
May 18, 2021
Roslyn does not emit the default values, so reflection does not return them. |
Youssef1313
added a commit
to Youssef1313/roslyn
that referenced
this issue
May 18, 2021
Indeed. I added a test for this issue in #53402 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
ParameterInfo.DefaultValue
isn't available with local methods (and I'm guessing delegates as well). In this ASP.NET Core feature we want to use the default value information to make decisions about how a delegate will be called. e.g. use the default value when calling the method if no other value is available.Configuration
Host (useful for support):
Version: 6.0.0-preview.2.21154.6
Commit: 3eaf1f316b
Regression?
No
The text was updated successfully, but these errors were encountered: