Take a look at the namespace System.Reflection, here you will find the functionality to get information about assemblies.
This may not be exactly what you need, but it shows what you can achieve, I get all the types in the assembly currently in progress, iterate over and print out the namespace of each type.
foreach (Type t in Assembly.GetExecutingAssembly().GetTypes())
{
Console.WriteLine(t.Namespace);
}
Just look through the class Assemblyand you should find a way to solve your problem.