Preventing class DLL from being exposed or used?

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

I've written a class library that contains many of the functions my software
uses (by a few different projects). How can I prevent someone with .NET
from using my DLL without my permission? I'd rather them not be able to
view the function names, etc within it.

I've tried removing Public from the Class line, but then I can't use it with
any of my projects. It complains that it's not accessible because it's
friend.
 
Hi Greg,

You might use StrongNameIdentityPermissionAttribute to limit who can call
your methods.
 

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

Back
Top