5 pts.
 Visual Basic & Designing a Class Library
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

Software/Hardware used:
ASKED: October 4, 2008  8:33 PM
UPDATED: October 8, 2008  4:59 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  October 8, 2008  4:59 am  by  BobBeechey   750 pts.
All Answer Wiki Contributors:  BobBeechey   750 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _