By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,391 Members | 1,387 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,391 IT Pros & Developers. It's quick & easy.

Geting class attributes types

P: n/a
Hi

I would like to have a function that will run through a class to determine
the attribute types. How would I do this?
For example,

public class ABC

private m_first as string
private m_second as integer
private m_third a string

someMethod()

end class
private function GetAttributes(theClass) as integer
'I want to pass the ABC class into this function so that I can determine
how many of the properties of the class are of type String

end function

Is there a simpler way to do this?

Harry
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

You need to use reflection to gain class metadata :

http://www.expresscomputeronline.com...chspace2.shtml

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.