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.
 
Back
Top