-
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
Emit metadata for auto-property initializers #10454
Comments
Of course optional method arguments have the following limitation:
|
The obvious solution would be "look at the code". I'm guessing that isn't an option for you though? |
@DavidArno It's a solution. However it has a number of usability problems:
|
I think this would be a significant problem. How do you represent arbitrary expressions/values in metadata? |
@svick Yes, I am afraid it might be a substantial problem. |
Somewhat related to #711. |
I want to be able to know what are the default values of properties without having to refer to documentation similarly to how optional method arguments work.
Would it be possible to emit reflectable metadata for property initializers?
This would be beneficial for auto-generated documentation and IDE hints.
At the moment my choices are:
Related SO question:
http://stackoverflow.com/questions/33383991/c-sharp-6-0-and-reflection-getting-value-of-property-initializers
The text was updated successfully, but these errors were encountered: