Possible Duplicate:
How to get Namespace of an Assembly?
when i load a assembly how can i find its namespace suppose if i load a exam.dll how can i find its namespace
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First off, an assembly can contain many namespaces. It’s often that 1 assembly == 1 namespace, but this is not required at all.
To find the namespaces in the assembly, just get all of the types in the assembly. See Assembly.GetTypes for details as to how to do this.
From the type, you have the fully qualified type name, and the namespace of the type.