Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting The Full Namespace of an Item

Status
Not open for further replies.

ryansupak

MIS
Jul 23, 2002
39
US
Hi, I'm new to C# -- but I've been programming for awhile and it's straighforward, so I'm getting up to speed pretty fast.

Most of the examples that I'm finding, for the specific task I'm trying to do, are contained within Solution Files for VB.NET.

No problem, though, I found a handy dandy web-based converter that will translate the code, 95% error-free:
I've already gotten through several successful VB.NET to C# conversions, but it appears that VB.NET is a little less choosy than C# is about fully qualified namespaces.

I say this because most of my time is spent fixing "The type or namespace 'theObject' cannot be found" errors. I fix them by fully qualifying the namespace.

Typically, guessing that "System.Web" or something similar is the missing namespace portion, has been fairly successful. However, I'm looking for an easier way to do this. I'm looking for a way to search all classes against the "Mystery Object Portion" that I have, to see all the instances of it. That way, I could choose the one that (hopefully) is the clear ideal.

Here's an example: Right now I'm dealing with a "namespace fragment" called "ListItem". I haven't been able to easily find the rest of the namespace. If there was some way I could search my namespace for ListItem, though, it would be easy.

Hopefully I'm making sense, thanks for reading and thanks for any insight -- it would help a beginner out!

rs
 
Put the cursor on the item in question, and press F1.
In the online help pane that appears, click on the link to the "overview" for your class (should be in the upper left).

It will show you the namespace at the top of the text, usually as an indented list under System.Object.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top