[Mono-list] Finding types by namespace

Miguel de Icaza miguel at ximian.com
Thu Dec 21 14:02:37 EST 2006


> Namespaces in the CLR are just a string attribute attatched to each  
> type, so what's the best way to get a list of all the types in a  
> particular namespace? Do I have to search through all types in the  
> AppDomain and look at the namespace attribute? Won't that be very  
> slow as touching every type with lazy load huge amounts of data  
> structures that I won't actually use?
> 
> I'm thinking about creating a Namespace class that has a list of  
> member types and child namespaces. Is there anything like this already?

You need to get all the types in an assembly, and then split out based
on their namespace yourself.


More information about the Mono-list mailing list