软件制作:Reflector 辅助工具

Reflector

Reflector是一款比较强大的反编译工具,相信很多朋友都用过它,但是导出的资源文件是xxx.resources文件,如果需要修改此资源文件,我们就需要转换成xxx.rex,为此做了一个.net资源转换工具。

Code:

        string strResources = this.txtResources.Text; //反编译出的资源文件xxx.resources

        string strResx = this.txtResx.Text;           //还原后的资源文件 xxx.rex

        if (string.IsNullOrEmpty(strResources) || string.IsNullOrEmpty(strResx))

        {

             return;

         }

         ResourceReader reader = new ResourceReader(strResources);

         ResXResourceWriter writer = new ResXResourceWriter(strResx);

 

         foreach (DictionaryEntry en in reader)

         {

             writer.AddMetadata(en.Key.ToString(), en.Value);

          }

          reader.Close();

          writer.Close();

 

查看更多精彩图片

下载地址:

http://dl.dbank.com/c0jh92bnal

http://download.csdn.net/detail/ctfysj/3813759

原文地址:https://www.cnblogs.com/Gemgin/p/3136219.html