Access to dll methods

后端 未结 3 1497
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 16:58


I prepared some C# dll for my customer that doing some functionality.
The thing is that I use also same dll.
How can I make some methods available to him and al

3条回答
  •  梦毁少年i
    2021-01-03 17:50

    You have to compile two versions of your assembly. The version you distribute to your cutomer needs to completely exclude the methods you don't want them to access, otherwise they'll be accessible through Reflection regardless of how you "hide" them.

    (Assuming you don't want your assemblies to be signed)

提交回复
热议问题