namespace System.Collections.Specialized { public class StringDictionary : IEnumerable { protected Hashtable table; public StringDictionary() { table = new Hashtable(); } // Public Instance Properties public virtual int Count { get { return table.Count; } } public virtual bool IsSynchronized { get { return false; } } public virtual string this[string key] { get { return (string) table[key.ToLower()]; } set { table[key.ToLower()] = value; } } public virtual ICollection Keys { get { return table.Keys; } } public virtual ICollection Values { get { return table.Values; } } public virtual object SyncRoot { get { return table.SyncRoot; } } // Public Instance Methods public virtual void Add(string key, string value) { table.Add(key.ToLower(), value); } public virtual void Clear() { table.Clear(); } public virtual bool ContainsKey(string key) { return table.ContainsKey(key.ToLower()); } public virtual bool ContainsValue(string value) { return table.ContainsValue(value); } public virtual void CopyTo(Array array, int index) { table.CopyTo(array, index); } public virtual IEnumerator GetEnumerator() { return table.GetEnumerator(); } public virtual void Remove(string key) { table.Remove(key.ToLower()); } } }