|
-
Oct 17th, 2005, 01:57 PM
#1
Thread Starter
Frenzied Member
Name of a property
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,
Don't anthropomorphize computers -- they hate it
-
Oct 17th, 2005, 02:11 PM
#2
Lively Member
Re: Name of a property
all public properties of your class are available to all other class to which it is called. and yes, they are available programmatically.
unless i am mistaken on what exactly it is that you want
-
Oct 17th, 2005, 02:13 PM
#3
Thread Starter
Frenzied Member
Re: Name of a property
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,
Don't anthropomorphize computers -- they hate it
-
Oct 17th, 2005, 02:30 PM
#4
Addicted Member
Re: Name of a property
Read through this post. I do believe you will find what you are looking for.
Kyjan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|