Search the Community
Showing results for tags 'property'.
-
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! :D
- 2 replies
-
- nested
- properties
-
(and 2 more)
Tagged with:
-
Hello people, nice forum and nice contents. I am new to .net and hope to get some help in order to do this : Saying we havec a ClassA within a method called DoWorkWhenPropertyGetterIsCalled. A ClassB inherits form ClassA and define lets say two properties ProBA binded to a private mA field and PropB binded to a private mB field. What's the best way (if exists) to ensure calling DoWorkWhenPropertyGetterIsCalled each time objCallB.PropX is called? Another ClassC subclass of ClassA also may define ProPA to PropZ and I need the method to be called automatically each time a property getter is defined. Well hope I was clear enough... Thank u all in advance for ur help