menuitems.addrange in .Net 5
Hi, I am migrating our project to .Net 5.
As per documentation menuitem is deprecated in .Net5 and ToolStripMenuItem is used instead, which replaces the MenuItem control.
I was using Addrange function of menuitem . Can anybody please suggest that what is the corresponding of Addrange in ToolStripMenuItem. How can I migrate this ?
following are code snippets below ....
private System.Windows.Forms.MenuStrip MainMenu;
private System.Windows.Forms.ToolStripMenuItem mnuFile;
this.MainMenu.Items.AddRange(new System.Windows.Forms.ToolStripMenuItem[] { this.mnuFile});
//
// mnuFile
//
this.mnuFile.MergeIndex = 0;
this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.ToolStripMenuItem[] {