Click here to Skip to main content
16,004,974 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
If I dont know the namespace of a class then, How can we know that In which namespace a particular class exist in Visual Studio Framework.
Posted

Hi
Namespace is logical grouping of classes,
If you want to perform database related then choose System.Data
for string related choose System.Text like that there are many namespaces

If you want to read database connectionstring from web.cong file then
you have to include namespace System.Configuration, For threads System.Threading
 
Share this answer
 
You might want to consult msdn - that's what I do in such cases.
 
Share this answer
 
Comments
ranjansingh235 22-Jul-10 8:25am    
thank you , I will consult MSDN
Freakin google it, dude. How hard is that to do?

Just use the object name as the search phrase, and msdn is USUALLY the very firt result listed. In fact, you typically don't even have to follow the link because the namespace is listed right there on the google result page.

Are you completely new at this internet stuff?
 
Share this answer
 
Comments
ranjansingh235 22-Jul-10 8:28am    
No, I am not very new but actully i feel that may be framwork provides that facility by which we can search that the particular class in which namespace exist. well thanks for your quick responce.
I google the class and up comes the MSDN online documentation. From there it is not hard to find out which namespace to use.
 
Share this answer
 
Comments
ranjansingh235 22-Jul-10 8:29am    
ok thank you yusuf
You can also use the Object browser built into Visual Studio (available in the express editions too).
 
Share this answer
 
Comments
ranjansingh235 23-Jul-10 0:21am    
thanks for reply DaveyM, I start using this. Its really helpfull.thanks once again.

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