예제 #1
0
        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;
        }
예제 #2
0
        public static void AddDictionaryArgument(TotemFunction function, string name, object value, TotemDictionary dict)
        {
            if (dict.ContainsKey(name))
                throw MultipleKeywordArgumentError(function, name);

            dict[name] = value;
        }