Click here to Skip to main content
11,705,764 members (51,777 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#

how i can decompile a exe file(c#)

i want see a decomiler program how work?

What is the success rate?
Posted 21-Dec-11 9:26am
SAKryukov at 21-Dec-11 15:31pm
Decompile into what?
faezun at 21-Dec-11 15:35pm
a c# exe project >> c# source project
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

There is no such thing as success rate. And you did not share with us what is you measure of success.

If you simply need to get a the IL code which will successfully compile back in the equivalent assembly, it's 100% successful provided the user of a compiler is not suffering from brain damage. Smile | :) This is routinely used is some techniques which go beyond the topic of the question.

You can decompile into IL using ILDASM. See:[^].

I would recommend using .NET Reflector:[^],[^].

Open-source alternative is ILSpy, see:[^],[^],[^].

Using these tools, you can get good quality decompiled C# source.

Espen Harlinn at 21-Dec-11 15:58pm
My 5 - I've found reflector to be quite useful as it generates c#. While not 100% perfect it can reduce an effort that would take several months to a couple of weeks.
SAKryukov at 21-Dec-11 16:41pm
Right. Thank you, Espen.
I see you've been quite busy. How is everything?
Member 8638251 at 6-Mar-14 5:43am
Thank you
faezun at 22-Dec-11 1:39am
thank you SAKryukov :))
SAKryukov at 22-Dec-11 1:54am
You are welcome.

Good luck, call again.
Monjurul Habib at 22-Dec-11 16:56pm
SAKryukov at 22-Dec-11 19:13pm
Thank you, Monjurul.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

.Net Decompiler[^][^]
.Net Decompiler is completely integrated with Spices.NET and offers tools to decompile or visually represent .Net code, helps to recover or convert .Net code to the one of six supported languages: MSIL, C#, VB.NET, Delphi.NET, J# or managed C++.
SAKryukov at 21-Dec-11 16:44pm
I did not see those two before -- good to know; my 5. I mentioned two other possibilities in my answer.
RaviRanjankr at 22-Dec-11 4:16am
Thanks :)
faezun at 22-Dec-11 1:41am
thank you RaviRanjonkr :)
RaviRanjankr at 22-Dec-11 4:17am
No Problem :)
Monjurul Habib at 22-Dec-11 16:57pm
RaviRanjankr at 22-Dec-11 17:20pm
Thanks :)
Amir Mahfoozi at 23-Dec-11 4:35am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You could try searching C# decompiler[^] in google.

There are lots of bits of information there, but I don't think you'll find what you are looking for. From your question I get the idea that you want to decompile a given exe into a fully functional C# Visual Studio solution. It is very unlikely that you will get that.
SAKryukov at 21-Dec-11 16:43pm
Good idea, my 5. Chances are, I already mentioned the best options (in my answer, please see), but who knows, maybe we can get something better....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 213
1 Sergey Alexandrovich Kryukov 170
2 Inimicos 60
3 ProgramFOX 50
4 Richard MacCutchan 45
0 OriginalGriff 9,037
1 Sergey Alexandrovich Kryukov 8,417
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 21 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100