开发者

How does c# decompiler work

i am interested in decompilers like ILSpy or .Net Reflector and etc.

Can anybody tell me how this decompiler convert exe or dll files written in c# to its origina开发者_JS百科l source code?


There are two key points, here.

Firstly, IL, while a lower level language that C# or VB.NET, is a much higher level than assembler or machine code. Many high level constructs are still in place and can be used relatively easily to determine the flow and operation of the code.

The other key point, is that a decompiler does not generate the original source code. It generates high-level language constructs from the lower-level IL, which, typically are very similar to the original source code, but not identical.


Because the C# complier generates a meta data information and the generated code is intermediate language that is translated to binary code at runtime so each dll or exe generated from the complier can be refactored by .net reflector and the ILSpy can

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜