Visual Basic & Designing a Class Library

5 pts.
Tags:
.NET
VB.NET
Visual Basic
I have a project with a few class libraries that are comprised of class hierarchies. The problem is when I access these class libraries from a form I see all of the classes that are inside of the class libraries. This is for a customer so I only want them to see the classes that they need to access. Any help would be appreciated. Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

All members of the base class must be Protected and then to make the class itself invisible to the form you could mark it MustInherit.
This assumes your heirarchy is compiled into its own namespace as a dll. The user of your form will be able to see the names of your base classes by typing, for example, “Dim cc as” as it will be listed by Intellisense. However, that is all, the user will be able to do – he/she will not be able to instantiate or study the guts of the classes. However, you will need an efficient obfuscator if you want to defend against the Reflector decompiler.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following