Make up for the lack of Chinese support for reflector Decompilation

Source: Internet
Author: User
Tags reflector

Reflector is the most frequently used decompilation tool. It may be the best tool from time to time, but with its update speed, I believe he will become the best ~~
Foreign software, Chinese support still has a problem, although we are all Unicode, but foreigners still do not have to pay for it. Reflector decompilation code, Unicode non-English characters are displayed as/u ????, This is still true, but we seem so depressed. Reflector supports plug-in. Once I wanted to write a plug-in, I gave up the plug-in because I had to know too much about it. However, the problem is also solved, with the Macros in vs. net, haha

Who can understand the code written before the conversion @_@?

Don't worry, the converted code becomes:

Vs. Net macro code, name: unicode2character

Imports envdte
Imports system. Globalization
Imports system. Text. regularexpressions
Imports system. Diagnostics

Public module birdshomemodulemodule birdshomemodule birdshome

Sub unicode2character () sub unicode2character () sub unicode2character () sub unicode2character ()
Dim doc as document = DTE. activedocument
Dim doctext as textdocument = Doc. Object
Dim seltext as textselection = doctext. Selection ()
Seltext. selectall ()
Dim text as string = seltext. Text
Dim ilength as integer
Do
Ilength = text. Length
Dim M as match
Dim strpattern as string = "(? <Code>/U [A-F0-9] {4 })"
M = RegEx. Match (text, strpattern, regexoptions. ignorecase)
If M. Success then
Dim strvalue as string
Strvalue = M. Groups ("Code"). Value
TEXT = text. Replace (strvalue ,"")
Dim int as integer
Int = system. int32.parse (strvalue. substring (2, 4), numberstyles. hexnumber)
Dim ch as char = chrw (INT)
Doctext. replacepattern (strvalue, CH)
Else
Exit do
End if
If not text. Length <ilength then
Exit do
End if
Loop
Seltext. startofdocument ()
End sub
End Module

From: http://www.cnblogs.com/birdshome/archive/2004/08/31/37926.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.