Skip to content

Commit 46e3ec5

Browse files
committed
ToHashSet does not exist in netstandard2.0...
1 parent 2fb6691 commit 46e3ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RT.CommandLine/CommandLine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ private static object parseCommandLine(CommandInfo cmd, string[] args, int i, Tr
390390
throw new CommandLineHelpRequestedException(cmd);
391391

392392
var elements = cmd.Elements;
393-
var missingMandatories = elements.Where(e => e.IsMandatory).ToHashSet();
393+
var missingMandatories = new HashSet<CmdLineElement>(elements.Where(e => e.IsMandatory));
394394
var positionals = elements.Where(e => e.IsPositional).ToQueue();
395395
var actionsToPerform = new List<Action<object>>();
396396

0 commit comments

Comments
 (0)