How to protect dlls?

后端 未结 7 1216
萌比男神i
萌比男神i 2020-11-28 11:57

How do I protect the dlls of my project in such a way that they cannot be referenced and used by other people?

Thanks

7条回答
  •  盖世英雄少女心
    2020-11-28 12:48

    Well you could mark all of your "public" classes as "internal" or "protected internal" then mark you assemblies with [assembly:InternalsVisibleTo("")] Attribute and no one but the marked assemblies can see the contents.

提交回复
热议问题