Example #1
0
 public virtual void safeAssign(string targetKey, OrderedHashtable srcObj, string srcKey)
 {
     if (srcObj.ContainsKey(srcKey))
     {
         this[targetKey] = srcObj[srcKey];
     }
 }
Example #2
0
        public virtual OrderedHashtable copy()
        {
            Type   t = this.GetType();
            object o = t.Assembly.CreateInstance(t.ToString());

            OrderedHashtable dest = (OrderedHashtable)o;

            foreach (string name in Names)
            {
                dest.Add(name, this[name]);
            }

            return(dest);
        }
Example #3
0
        public virtual void copyFrom(OrderedHashtable src)
        {
            this.Clear();

            if (src == null)
            {
                return;
            }

            for (int i = 0; i < src.Count; i++)
            {
                this.Add(src.Names[i], src[i]);
            }
        }
Example #4
0
 public TypedHashtable()
 {
     types = new OrderedHashtable();
 }