0

I am new to .NET application development. Involving one project, there are three modules like Interface layer, Business layer, and Data layer; I built these and I got .dll file.

But I lost the source code of one .dll file.

I'd like to extract the .dll and get the same source code. Is it possible to extract my source code from the .dll file?

r.vengadesh
  • 1,721
  • 3
  • 20
  • 36
Srinivas Rao
  • 77
  • 2
  • 2
  • 4
  • Search for c# decompiler: http://www.jetbrains.com/decompiler/ – Kamil Budziewski Aug 01 '13 at 06:58
  • 7
    Try [DotPeek](http://www.jetbrains.com/decompiler/). Note that this will get you a source-code *representation* of the DLL, but the original code is **gone** (be more careful with your sourcecode next time!) Local variable names and comments, for example **cannot** be recovered. – Jonathon Reinhart Aug 01 '13 at 07:00
  • http://www.decompiler.net/ download a free evaluation version as well – MANISHDAN LANGA Aug 01 '13 at 07:03
  • What code versioning system are you using? Perhaps another question can help you identify a good backup scheme. – Gusdor Aug 01 '13 at 07:05
  • possible duplicate of [C# Decompilers?](http://stackoverflow.com/questions/4480091/c-sharp-decompilers) – Rob Aug 01 '13 at 07:12

2 Answers2

6

I really like JetBrains dotPeek, it's free and easy to use.

Used it for same purposes

Uriil
  • 11,948
  • 11
  • 47
  • 68
1

Try ILSpy, an open-source .NET assembly browser and decompiler (it requires the .NET Framework 4.0).

Alex Filipovici
  • 31,789
  • 6
  • 54
  • 78