I’ve moved a class in my project into a class Library in the same solution. I’ve added a reference in the web project to the class library.
How do I access the methods in the class library?
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.
Make sure the method and class are public and instantiate to use it:
Or, if your method is static:
Make sure to include the namespace of your class is your target classes using statements, i.e.
If you’re unsure of the namespace of
YourClassyou can find it within the Class file at the top, directly beneath your using statements. Or you can mouse over theYourClasstext in the Visual Studios Editor and then select the namespace by clicking the button that appears.