how to get namespaces inside an assembly

  • Thread starter Thread starter Paul Fi
  • Start date Start date
Something like

foreach ( Type t in yourAssembly.GetTypes() )
Console.WriteLine( t.Namespace );

where yourAssembly is an instance of System.Reflection.Assembly.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top