logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MenuSelectOption

    Use case for selecting a menu option.

    Inheritance
    object
    MenuSelectOption
    Implements
    ISyncUseCase<MenuSelectOptionInput>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.Application.UseCases
    Assembly: Serenity.Menu.Application.dll
    Syntax
    public class MenuSelectOption : ISyncUseCase<MenuSelectOptionInput>, IUseCase
    Remarks

    This class handles the logic for selecting a menu option by interacting with the menu presenter.

    Constructors

    MenuSelectOption(IMenuPresenter)

    Initializes a new instance of the MenuSelectOption class.

    Declaration
    public MenuSelectOption(IMenuPresenter presenter)
    Parameters
    Type Name Description
    IMenuPresenter presenter

    The menu presenter to be used for selecting the menu option.

    See Also
    IMenuPresenter

    Methods

    Execute(MenuSelectOptionInput)

    Executes the menu select option operation using the provided input data.

    Declaration
    public void Execute(MenuSelectOptionInput input)
    Parameters
    Type Name Description
    MenuSelectOptionInput input

    The input data containing the IDs and index for the menu option.

    Remarks

    This method interacts with the menu presenter to perform the selection operation.

    See Also
    MenuSelectOptionInput

    Implements

    ISyncUseCase<TInput>
    IUseCase

    See Also

    IMenuPresenter
    MenuSelectOptionInput
    In this article
    © 2026 Serenity. All Rights Reserved