public static bool CheckDictionaryMembers(TotemDictionary dict, string[] names) { if (dict.Count != names.Length) return false; foreach (string name in names) if (!dict.ContainsKey(name)) return false; return true; }
public static void AddDictionaryArgument(TotemFunction function, string name, object value, TotemDictionary dict) { if (dict.ContainsKey(name)) throw MultipleKeywordArgumentError(function, name); dict[name] = value; }