-
Notifications
You must be signed in to change notification settings - Fork 478
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
Property with init-only setter results in MissingMethodException #890
Comments
A small clarification here: It's not the setter being The issue is triggered by using a setter (regardless of whether it's an |
Describe the bug
In case of read-only properties in the command line options class, where a property is defined as
you will get a
MissingMethodException
when parsing the command line.To Reproduce
See this fiddle https://dotnetfiddle.net/J05g0c
Expected behavior
The exception is not thrown
Additional context
The resulting stack trace is as follows:
The text was updated successfully, but these errors were encountered: