Turn: how to restore the resource file after reflector Decompilation

Source: Internet
Author: User
Tags reflector

This method is only applicable to the forms called by initializecomponent that contain system. Resources. ResourceManager.

1. Convert the resource file format to. Resources (Binary) file to. resx file (XML)
Use resgen.exe under Program Files \ Microsoft Visual Studio. NET 2003 \ SDK \ V1.1 \ bin
Format: resgen *. Resources *. resx (The. resx file should be the same as the form. CS file)

See:
Http://www.microsoft.com/china/community/program/originalarticles/techdoc/how_resourcefile.mspx

2. Replace the object manager in the initializecomponent method with resources (yes, only replace the variable name pai_^)
3. Place the resource file. resx in the same folder as the form file. CS.
4. exclude all forms (. CS) from the project, and then add (this saves the process of ing the. resx file to. csproj ).

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/102442/archive/2008/04/27/2333726.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.