Restrict access to an assembly

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
 
M

Mattias Sjögren

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
 

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

Top