Class

S

shapper

Hello,

I am working on a class library (MyNamespace) where I have 10 web
controls (10 classes)
I want 2 of these controls to be available for the user that uses the
class library.
The other 8 shouldn't be available because they are only used in the
other 2 web controls.

How can I do this?

Thanks,
Miguel
 
A

Andrew Faust

So long as you put all 10 classes in the same assembly you can scope the 8
protected classes as 'internal'. Make the other 2 public. With internal
only the classes in the assembly can access them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top