If you use a you assembly reference (myExample.dll), you add like this to the top
using myExample;
Now if you create a class file, how do you reference it?
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.
Well, in your class file you have the following:
Let’s assume that you have this in an assembly named
MyDll.dll. You’d use it as follows:MyDll.dllwithin the solution explorerusing myNamespace;MyClass test = new MyClass();If you don’t add the namespace like I said in 2., you’d use your class like: