public class MenuDictionary : Dictionary { // Menus are registering themselves automatically public override Menu GetEntryById(string id) => entries.Find(entry => entry.id == id); }