public static ToolStripMenuItem add_Menu(this ToolStripMenuItem toolStripMenuItem, string name) { if (toolStripMenuItem.notNull() && toolStripMenuItem.Owner is MenuStrip) { return((toolStripMenuItem.Owner as MenuStrip).add_Menu(name)); } "[in add_Menu] toolStripMenuItem.Owner was not a MenuStrip, it was: {0}".error(toolStripMenuItem.typeName()); return(null); }