// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Collections; class MainClass { public static void Main(string[] args) { Hashtable ht = new Hashtable(); ht.Add("A", "Dette er A"); ht.Add("B", "Dette er B"); ht.Add("C", "Dette er C"); Console.WriteLine((string)ht["B"]); IDictionaryEnumerator en = ht.GetEnumerator(); en.MoveNext(); Console.WriteLine((string)en.Value); } }