Jump to content
  • Advertisement
Sign in to follow this  
u235

[.net] Missing classes in class library

This topic is 3886 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am making a small class library and so far it has three classes. It builds fine but when I use it in a project, Intellisense is only finding one of the classes in the namespace. Anything that might be causing this? I'll hold off on showing code for now, but if you need any, feel free to ask. I just don't want to post irrelevant code, because frankly I have no idea what might be causing the problem, or even if the code is the problem. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Disregard, I found the problem. When the class library project is created, the default class it provides is public, but any class you add to it via New...->Class... is private by default. I changed the two other classes to public as well and everything works fine now.

Share this post


Link to post
Share on other sites
That's exactly what it is - private.
Note the difference in standard behaviour to Java!

Just wanted to stress that ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!