11

Is there any way to convert .dll file to .cs files? I am searching for any tool or online website what can convert .dll file into .cs files. If any one have any info please inform Thanks in advance.

Arnab Kundu
  • 1,287
  • 2
  • 12
  • 17

3 Answers3

11

No, in general, that's not possible (in any compiled language).

You can decompile binaries for .NET into CIL (Common Intermediate Language), which is an object-oriented assembly language. Various .NET languages (C#, F#, Visual Basic, etc.) are compiled into the bytecode, which is then being executed by the .NET virtual machine rather than by the processor.

Thanks to that the .NET bytecode is platform independent, it can be executed on any platform for which the .NET virtual machine exists without the recompilation.

You can decompile the .NET binaries into CIL using for example these free decompilers:

dotPeek has a feature to decompile any .NET binary into equivalent C# code, but it's not same as the original C# code.

David Ferenczy Rogožan
  • 23,966
  • 9
  • 79
  • 68
0

You can use this http://ilspy.net/, it is a really good tool will convert you dll to .cs files

Bassem
  • 54
  • 3
0

You can try anyone of the third party decompilation tool to get your code from dll.

One of the most recognized: .Net reflector tool.

NOTE: You can convert it only to MSIL (Intermediate Language):

Fuzzybear
  • 1,388
  • 2
  • 25
  • 42