Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

how to get the class names of the project located in same solution ?

Already added the reference to the current project and used "using.project1"namespace in code







With thanks & Regards,
Gayathri
Posted
Comments
Sinisa Hajnal 16-Feb-15 2:17am    
Commonly, you read documentation. If that is not available, start typing and let the intellisense show you what is available. If you need complete write up, reflection is the only way to go.
BillWoodruff 16-Feb-15 4:52am    
Do you have legal access to the source code of the Dll's ?

Are the classes you wish to view exposed as 'Public ?

What is it you can't view now that you think you should be able to view: are you guessing at that; or, do you know ?

1 solution

If you have added the reference (and to the project, not the DLL file) and the appropriate using statement, then the public classes within that namespace are then available in your code.

If you can't access them, then there are a couple of possibilities:
1) The classes you want to use aren't public.
2) You have referenced the Release DLL file of the other project instead of referencing the project itself: that means that you need to build the release version for any new or changed classes to be available.
3) The project you are referencing has build errors: until these are cleared, new and changed classes will still be unavailable.

If you are trying to find details about what is available within the project, then (as Sinisa Hajnal has said) you would need reflection to find out at run time, or use the Class View pane in Visual Studio to explore the project content.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900