Imports System.ComponentModel Imports System.ComponentModel.Design Imports System.Windows.Forms <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ <Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", GetType(IDesigner))> _ Partial Class MPanel Inherits System.Windows.Forms.MenuStrip Implements IContainerControl
Dim MItem As New NRadioButton.TSRadio <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _ <Editor("System.ComponentModel.Design.CollectionEditor, Systen.Design", GetType(System.Drawing.Design.UITypeEditor))> _ <Browsable(True)> _ Public Property MenuItems() As ToolStripItemCollection 'ToolStripItemCollection Get 'Return mnuMain.Items Return Me.Items End Get Set(ByVal value As ToolStripItemCollection) 'mnuMain.Items.Clear() Me.Items.Clear() 'For Each elem In value 'Me.Items.Add(CType(elem, ToolStripItem)) Me.Items.Add(CType(MItem, ToolStripItem)) 'Next End Set End Property
public class Foo { public int Bar { get; set; } } public class Baz { public Foo Foo { get; } = new Foo(); } Baz baz = new Baz(); baz.Foo.Bar = 42; // <-- Works fine in C#, and in VB.NET
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)