Class CombinedMenuModel
A menu constructed by resolving the links in its submenus into a single list.
public record CombinedMenuModel : MenuModel, IEquatable<MenuModel>, IEquatable<CombinedMenuModel>
- Inheritance
-
CombinedMenuModel
- Implements
- Inherited Members
Constructors
CombinedMenuModel(IReadOnlyList<MenuModel>)
A menu constructed by resolving the links in its submenus into a single list.
public CombinedMenuModel(IReadOnlyList<MenuModel> Submenus)
Parameters
SubmenusIReadOnlyList<MenuModel>
CombinedMenuModel(params MenuModel[])
public CombinedMenuModel(params MenuModel[] Submenus)
Parameters
SubmenusMenuModel[]
Properties
Submenus
public IReadOnlyList<MenuModel> Submenus { get; init; }
Property Value
Methods
Flatten(IServices)
public override IEnumerable<LinkModel> Flatten(IServices services)
Parameters
servicesIServices