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

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


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?

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

P: n/a

You need to use reflection to gain class metadata :

Natty Gur[MVP]

blog :
Mobile: +972-(0)58-888377
*** Sent via Developersdex ***
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.