public Set<String> getSet(Map<String,String> args, String name) {String s = args.remove(name);if (s == null) {return null;} else {Set<String> set = null;Matcher matcher = ITEM_PATTERN.matcher(s);if (matcher.find()) {set = new HashSet<>();set.add(matcher.group(0));while (matcher.find()) {set.add(matcher.group(0));}}return set;}}
public virtual ISet<string> GetSet(IDictionary<string, string> args, string name){string s;if (args.TryGetValue(name, out s)){args.Remove(name);ISet<string> set = null;Match matcher = ITEM_PATTERN.Match(s);if (matcher.Success){set = new JCG.HashSet<string>{matcher.Groups[0].Value};matcher = matcher.NextMatch();while (matcher.Success){set.Add(matcher.Groups[0].Value);matcher = matcher.NextMatch();}}return set;}return null;}