I built a class using C# and now I want to be able to call this class from other projects without using web services!! is this possible? are we able reference class from other projects?!
Many Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If a class is
public, then it can be used by other projects.In your project, you must add a reference to the assembly (dll) containing the class that you want you use.
In Visual Studio, right click on the project and select “add reference”. If you have two projects in the same solution, you can reference a project using the “Projects” tab in the “Add reference” dialog.
See msdn for more details: How to: Add or Remove References in Visual Studio