Relector反编译经验技巧整理

Relector反编译经验技巧整理

一、控件或基类中的常用替换

ComponentResourceManager manager 替换为 ComponentResourceManager resources

manager.GetObject 替换为 resources.GetObject

BorderStyle = BorderStyle. 替换为 BorderStyle = System.Windows.Forms.BorderStyle.

base.ImeMode = ImeMode.KatakanaHalf;替换为 base.ImeMode = System.Windows.Forms.ImeMode.KatakanaHalf;

base.AutoScaleMode = AutoScaleMode.Font; 替换为 base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

base.FormBorderStyle = FormBorderStyle.None;替换为 base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

base.StartPosition = FormStartPosition. 替换为base.StartPosition = System.Windows.Forms.FormStartPosition.

二、恢复所有Reflector反编译后资源文件

点击“开始”--“所有程序”--“Microsoft Visual Studio 2010”--“Visual Studio Tools”--“打开 Visual Studio 命令提示(2010)”

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>

resgen C:\Users\Administrator\Documents\Reflector\Disassembler\DLL文件名对应的目录\窗体控件文件名.resources C:\Users\Administrator\Documents\Reflector\Disassem
bler\DLL文件名对应的目录\窗体控件文件名.resx)

你可能感兴趣的:(Relector反编译经验技巧整理)