Finding all classes within a namespace

Finding all classes within a namespace

Post by thenedman2 » Mon, 14 Jun 2004 01:03:19


Is there a way to find all classes within a namespace
(programmatically)? I've played around with reflection a bit and it
seems that you can only find members of classes, not classes within a
namespace.

e.g., How would I find all classes within the namespace "System.Web"?

Any ideas?


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.yqcomputer.com/
 
 
 

Finding all classes within a namespace

Post by Frank Elle » Mon, 14 Jun 2004 23:51:44

Hi,


Since a namespace is only a "virtual" structure (which means that there is
no "Namespace"-Class, every class just knows her Namespace) you need to get
all the Types and check the "Namespace"-Property ...

Regards,

Frank Eller
www.frankeller.de

 
 
 

Finding all classes within a namespace

Post by thenedman2 » Tue, 15 Jun 2004 03:02:50


"]Hi,
a
"System.Web"?
Since a namespace is only a "virtual" structure (which means that
there is
no "Namespace"-Class, every class just knows her Namespace) you need
to get
all the Types and check the "Namespace"-Property ...

Regards,

Frank Eller
www.frankeller.de[/quote:da0876ead6]

Thanks, that makes sense now. How would I get all possible .NET
classes ? (in order to then query the namespace property)


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.yqcomputer.com/