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