public void DumpKeys() { Set t = new Set(); foreach (Keys[] keys in targets.Values) { if (tree.Contains(keys)) { foreach (Action a in tree[keys] as ArrayList) { string sa = string.Format("{0,-60} Keys: {1}", a, KeyString(keys)); t.Add(sa); } } } ArrayList st = new ArrayList(t); st.Sort(); foreach (string h in st) { Console.WriteLine(h); } }