c# - How to expose only one particular class from an assembly? -


Suppose Assembly Assembly1.dll has 3 classes: Class C1, C2, C3.

I want to expose only class C1 for the outside world Classes C 2 and C3 will not be accessible. How to get it?

Note: Creating a Class C2 and C3 is not a personal option because it will not have access to them within the Assembly.

Create class C2 and C3 internal, like:

  internal square C2 {// ...}  

Comments