We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3760d03 commit b4b649cCopy full SHA for b4b649c
src/CommandLine/Parser.cs
@@ -116,7 +116,6 @@ public ParserResult<T> ParseArguments<T>(IEnumerable<string> args)
116
/// and a sequence of <see cref="CommandLine.Error"/>.</returns>
117
/// <exception cref="System.ArgumentNullException">Thrown if one or more arguments are null.</exception>
118
public ParserResult<T> ParseArguments<T>(Func<T> factory, IEnumerable<string> args)
119
- where T : new()
120
{
121
if (factory == null) throw new ArgumentNullException("factory");
122
if (!typeof(T).IsMutable()) throw new ArgumentException("factory");
0 commit comments