commandline
commandline copied to clipboard
Removed where T : new()
Removed where T : new() from the ParseArguments<T> factory method as it shouldn't be required if convention is followed of only mutable classes required a default constructor, and immutable classes are supported and do not have this requirement, so the new() restriction is blocking immutable classes which should typically not have a default constructor.
This resolves #310
can we merge this please been over a year waiting on this fix
Note: We have moved the project to a more team managed repository. Please resubmit any pull requests to https://github.com/commandlineparser/commandline Sorry for inconveniences.
You had over a year to deal with this PR, long before you created a new repo. If you still have this issue and still would like to address it feel free to just copy and paste the changes where needed or reimplement your own solution.