示例#1
0
        //////////////////////////////////////////////////////////////////////////////

        public override Obj SetKeyValue(Obj key, Obj value)
        {
            if (!isMap)
            {
                throw ErrorHandler.InternalFail(this);
            }

            NeTreeMapObj tree = new NeTreeMapObj(col1, col2, hashcodes1, 0, col1.Length);

            return(tree.SetKeyValue(key, value));
        }
示例#2
0
        public override Obj DropKey(Obj key)
        {
            if (!isMap)
            {
                throw ErrorHandler.InternalFail(this);
            }

            if (!Contains1(key))
            {
                return(this);
            }

            NeTreeMapObj tree = new NeTreeMapObj(col1, col2, hashcodes1, 0, col1.Length);

            return(tree.DropKey(key));
        }