The normal way of accessing one project's classes from another is to
add a reference to the shared project or its DLL.
If you just want to share a single file, add it to the project but
choose "Link" instead of "Open" (by clicking the dropdown arrow on
that button). Both projects will use the same copy of the file.
Hi Paul
You should add the source code file to the project where you
want to use it , if the place where you will use your source file belong to
the same namespace , you go ahaid and simply call what ever you want to
call or declare what ever type of that file . if it is inside a different
namespace you simply use fill qualifiers or just add a using statement .
again you need to add that source file to the project you are working in.
hope that helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
There is no "include" statement in c# like C++. C# goes by namespaces. To
get access to the libraries, "using TestNamespace" will get the access
(reference has to be added first) of the classes.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.