public void AddAll <E>(ValueBag <E> other) where E : T { foreach (var kvp in other._values) { _values.Add(kvp.Key, kvp.Value); } }
public TokenMatchCollection(string textToMatch, ICommandToken[] matchableTokens) { if (matchableTokens == null) { throw new ArgumentNullException(nameof(matchableTokens) + " cannot be null"); } TextToMatch = textToMatch; _matches = new List <ParserTokenMatch>(); _argumentValues = new ValueBag <ArgumentToken>(); MatchableTokens = matchableTokens; }