private void TreeToHashtable(ShortcutCollection node) { foreach (CustomShortcut cs in node) { _shortcutMap.Add(cs.OwnerType, cs); TreeToHashtable(cs.Nodes); } } #endregion