public virtual void safeAssign(string targetKey, OrderedHashtable srcObj, string srcKey) { if (srcObj.ContainsKey(srcKey)) { this[targetKey] = srcObj[srcKey]; } }
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); }
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]); } }
public TypedHashtable() { types = new OrderedHashtable(); }