dotnet / dotnet/command-line-api
`Argument.Arity` modify internal state on first get access.
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
`Argument.Arity` modify internal state on first get access:
https://github.com/dotnet/command-line-api/blob/7a5ab9e32c4a8a66b925b9380408a6847e3fd098/src/System.CommandLine/Argument.cs#L35-L43
This behavior can be problematic with debugger. As debugger display value for property it would be fixed with possibly incorrect value. `Argument` should define debugger view that does not initialize `Arity` on first get access.
Contributor guide
Assessment
This issue has not been assessed yet.