newbie needs referencing help

redss

Newcomer
Joined
Sep 30, 2003
Messages
15
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!
 
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
 
Back
Top