Creating Class Library in Visual C#

I am trying to following this sameple and using dll in my project, just for testing. I am using VS2008 3.5. I added it to Reference.

dim test as new Classlibrary1.class1 < this won't work.

Who is Participating?
Paul JacksonConnect With a Mentor Software EngineerCommented:
@kaufmed thanks for the clarification, I wasn't aware of that I assumed it was private, but then I always specify access modifiers as a matter of course.


Here's some info on the differences between the access modifiers :

Access Modifiers
Paul JacksonSoftware EngineerCommented:
Looks like you've created a private class ensure you have the public keyword before the class i.e.

namespace ClassLibrary1
    public class class1


Open in new window

käµfm³d 👽Connect With a Mentor Commented:
For correctness, the default (i.e. when you don't explicitly specify) access modifier for classes is internal, not private. You would not be able to see any internal members outside of the assembly containing that class--unless you include a special attribute.
VBdotnet2005Author Commented:
excellent !!! Thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.