|
-
Aug 28th, 2008, 08:42 AM
#1
Thread Starter
Frenzied Member
propertyinfo.getvalue
Hey,
How can I get the value of a property if i'm in a shared class?
I can't use Me as the object parameter.
Thanks,
MA
Don't anthropomorphize computers -- they hate it
-
Aug 28th, 2008, 07:27 PM
#2
Re: propertyinfo.getvalue
There's no such thing as a Shared class. You might be in a Shared method of a class or you might be in a module. If you are in a Shared method then there is no current instance so of course you can't use Me, but then you if there's no current instance then you can't get a property value of the current instance via reflection either.
Are you saying, without actually saying, that you want to get the value of a Shared property of the current type?
-
Aug 28th, 2008, 07:29 PM
#3
Thread Starter
Frenzied Member
Re: propertyinfo.getvalue
I'm sorry, i completely miswrote that.
Yes, that is what I meant, hehe.
I figured it out.
Thanks,
Don't anthropomorphize computers -- they hate it
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
|