Method AddMenu
AddMenu(IMenuModel)
Adds a menu model to the collection.
void AddMenu(IMenuModel menuModel)
Parameters
menuModel
IMenuModelThe menu model to add.
AddMenu<MenuModelType>()
Adds a menu model of the specified type to the collection.
MenuModelType AddMenu<MenuModelType>() where MenuModelType : IMenuModel
Returns
- MenuModelType
The added menu model.
Type Parameters
MenuModelType
The type of the menu model to add.