コード例 #1
0
ファイル: TotemOps.cs プロジェクト: Alxandr/IronTotem-3.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
ファイル: TotemOps.cs プロジェクト: Alxandr/IronTotem-3.0
        public static void AddDictionaryArgument(TotemFunction function, string name, object value, TotemDictionary dict)
        {
            if (dict.ContainsKey(name))
                throw MultipleKeywordArgumentError(function, name);

            dict[name] = value;
        }