Hey,
How can I obtain the name of a property programmatically?
For example Class1.SomeProperty.
I want to get the SomeProperty as string programmatically.
Thanks,
Printable View
Hey,
How can I obtain the name of a property programmatically?
For example Class1.SomeProperty.
I want to get the SomeProperty as string programmatically.
Thanks,
all public properties of your class are available to all other class to which it is called. and yes, they are available programmatically. :D
unless i am mistaken on what exactly it is that you want
No, when you call the property like so object.someproperty, it will return the result of the get method of the property.
What I want is the following.
I have a class with shared properties.
I want to get the ACTUAL name of the property programmatically, not the value.
dim s as string = class.someproperty
But I don't want the result of get, I want the actual property name, in this case someproperty.
Hopefully this is explains it better.
Thanks,
Read through this post. I do believe you will find what you are looking for. :)
Kyjan