Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm learning C# (and vb.net as I go also) with Visual Studio 2002, and am trying to get over a little hump...

 

Can someone please give me a descriptive example of the following process:

1) looking up any function in the Visual studio help that is not included in the default namespace

2) describe how to add that reference to the project so that when I compile it will be found.

 

Its apparently not as simple as in C where (for example) I can look up strtok() and see that all I have to do is put "include <string.h>" at the top

 

Any examples (both C# and VB actually) will be appreciated!

  • *Experts*
Posted

Assuming you can find the class or function in the help, go to the class's (if a function) Overview help page and at the bottom you'll see a line like "Namespace: System.IO". That's what you need for the using part. The DLL Reference is almost always the same, or a higher named version if it doesn't exist.

Meaning, if the namespace is System.X.Y.Z and you don't see the file System.X.Y.Z.DLL then look for System.X.Y.DLL or System.X.DLL

 

-Nerseus

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...