Obfuscate Assembly and Reflection

前端 未结 4 1943
抹茶落季
抹茶落季 2021-02-15 23:55

I want to obfuscate my assembly files (*.dll, *.exe) by Dotfuscator. my question is if I do this, can I still use classes and types that are in those assemblies

4条回答
  •  有刺的猬
    2021-02-16 00:46

    You can use System.Reflection on an obfuscated assembly, but since some of the point of obfuscation is to rename everything in the assembly into random and meaningless things, you can't do reflection on the same names and identifiers as you would in a non-obfuscated assembly. If you want to do reflection on an obfuscated assembly, you would need to do it in a way that aren't dependent on what types and members are named.

提交回复
热议问题