示例#1
0
文件: MapMetaType.cs 项目: szensk/wul
        private IValue MapContains(List <IValue> arguments, Scope s)
        {
            MapTable map = (MapTable)arguments[0];
            IValue   key = arguments[1];

            return(map.AsDictionary().ContainsKey(key) ? Bool.True : Bool.False);
        }
示例#2
0
文件: MapMetaType.cs 项目: szensk/wul
        private IValue AreEqual(List <IValue> arguments, Scope s)
        {
            MapTable left  = (MapTable)arguments[0];
            MapTable right = (MapTable)arguments[1];

            return(left.AsDictionary().SequenceEqual(right.AsDictionary()) ? Bool.True : Bool.False);
        }