Hey guys!
I'm using VB.net and I would want to have "property properties" of a class like this:
Thing.Property1 = "Yo!" (*1)
Thing.Property1.AnotherThing = 0
Thing.Property1.AnotherThing2 = True
I understand I can use 'property Property1 as class' but if I do that, Property1 must get or set a Class, not a variable (*1) which is what I want. The contextualized example would be something like this:
Music.Note = 32 (A number representing a musical note)
Music.Note.MIDINumber (Retrieve the MIDINumber of Note)
Music.Note.Name (Retrieve the name of Note)
You can see it in this case:
Textbox1.Text="Something"
Textbox1.Text.Length
...Well, thanks for your help!
I'm using VB.net and I would want to have "property properties" of a class like this:
Thing.Property1 = "Yo!" (*1)
Thing.Property1.AnotherThing = 0
Thing.Property1.AnotherThing2 = True
I understand I can use 'property Property1 as class' but if I do that, Property1 must get or set a Class, not a variable (*1) which is what I want. The contextualized example would be something like this:
Music.Note = 32 (A number representing a musical note)
Music.Note.MIDINumber (Retrieve the MIDINumber of Note)
Music.Note.Name (Retrieve the name of Note)
You can see it in this case:
Textbox1.Text="Something"
Textbox1.Text.Length
...Well, thanks for your help!
Last edited: