0

hi,

i have created a solution project in Visual Studio. The solution project contains an ASP.net application project and several class library projects. now one of my class library is accessible by other projects by adding class library dll in it.
now i want to hide my one of class constructor from the out side project that using the DLL of my project. i have tried internal modifier with my constructor but it also restrict my constructor to be called from other projects of the same solution project.

can anybody tell me what will be the solution of this problem

Regards,
Nice Candy.

2
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by pritaeas
0

no actually i want to make it visible only in the Solution Project in which it is created and all other projects resides in that solution project. My Solution Project contain one Web Application project and three class library projects.

0

If it is visible to those, it is visible to all that reference it. You cannot make such a distinction. You can make protected constructors, that are only accessible by descendant classes though.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.