Possible Duplicate:
C#: List All Classes in Assembly
How I can get all class names in specific project using reflection?
Edit 1)
Is it possible to distinguish between programmer defined class and built-in classes?
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.
The two previous posters are correct. However, if you wanted a list of all referenced assemblies and their types, you could do:
This would give a list of all Types from the core libraries, third-parties etc which are referenced and used, if you are not using an assembly but have it referenced it wouldn’t list its types.
It isn’t greatly useful as it lists thousands of types from System and System.Core etc, but i’m not entirely sure what you’re trying to achieve, so it may be a start.