它只显示类内部函数的定义。例如。我打开读取功能,但它只显示像
这样的定义public override int Read([In,Out], byte buffer[], int offset,int count)
但是 .Net 反射器显示了我的 .dll 文件的所有内容,包括逻辑。
请帮助我隐藏我的逻辑,比如 microsoft .dll 文件
最佳答案
您无法阻止托管 DLL 在反编译器中打开,您所能做的就是 obfuscate它。 您可以使用 Dotfuscator 等工具混淆你的代码。
Dotfuscator provides all “normal” obfuscation methodologies in addition to many unique ones. No obfuscation technology is 100 percent secure. As with other obfuscators, Dotfuscator makes life more difficult for decompilers and disassemblers; it does not claim 100 percent protection.
它完成的一些事情是:
- 标识符重命名
- 控制流混淆
- 用户字符串加密
- 水印
- 使用 SO 信号的篡改通知和运行时智能
关于c# - 我尝试使用 .NET 反射器查看 .NET BCL 库,但它没有显示任何符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30364656/