示例#1
0
        public virtual void copyFrom(TypedHashtable src)
        {
            this.Clear();

            for (int i = 0; i < src.Count; i++)
            {
                this.Add(src.Names[i], src[i]);
                this.types[i] = src.Types2[i];
            }
        }
示例#2
0
        public override OrderedHashtable copy()
        {
            TypedHashtable dest = (TypedHashtable)base.copy();


            foreach (string key in Names)
            {
                dest.types.Add(key, types[key]);
            }


            return(dest);
        }