How can I restrict reflection for certain assemblies?

前端 未结 4 674
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-14 16:31

In my .net application I want to restrict reflection to certain assemblies. I mean I want that my a particular assembly can be reflected by only some predefined assemblies n

4条回答
  •  [愿得一人]
    2021-01-14 16:56

    Reflection is irresistible! :-)

    I don't think you can prevent reflection other than writing native code. And still, that can be disassembled. If you need to keep some code off unauthorized hands, keep it on a server that you control and allow remote access to it.

提交回复
热议问题