Restrict access to an assembly

  • Thread starter Thread starter Olivier Sauterel
  • Start date Start date
O

Olivier Sauterel

Hi all,

Anyone can tell me if it's possible to restrict the access of a classes
library (dll .NET) ?

For sample restrict the possibility to explore all classes and there
features into the object explorer from VS.Net or
restrict the use of that library from another program, because this library
will be distribued with an application, and
i don't want to share the library functions ... otherwise, anyone can
reference that library in his project and use all features ...

Any Idee or any link where i can find some infos about that ?

Thanks you
 
Olivier,
For sample restrict the possibility to explore all classes and there
features into the object explorer from VS.Net

No. You can obfuscate the assembly to make it a bit harder to
understand what the types and members do, but you can't prevent
someone from looking at it.

or restrict the use of that library from another program

Yes, you can do this with code access security and link demands.

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconLinkDemands.asp


Mattias
 
Back
Top