Menu menu = new Menu("My Menu", "myMenu"); menu.AddToMainMenu(); Menu category = new Menu("Category", "category"); menu.AddSubMenu(category); // Adding group label to the category menu category.AddGroupLabel("Items"); // Adding menu items to the group category.AddItem(new MenuItem("item1", "Item 1")); category.AddItem(new MenuItem("item2", "Item 2"));In the above example, a new menu is created with the name "My Menu" and the identifier "myMenu". A sub-menu named "Category" is then added to the main menu. The AddGroupLabel method is used to create a new group label named "Items" inside the "Category" menu. Two menu items are then added to the group. The LeagueSharp.Common package library is used in the above example to implement the League of Legends game API functionalities in C#.