Skip to content
Advertisement

View CIL of C# code on Linux with mono

I want to inspect the generated CIL code of the following C# source file on Linux:

JavaScript

When I compile and run it everything is fine:

JavaScript

But how can I get the human readable CIL output?

Advertisement

Answer

Mono disassembler, extracts IL code from an assembly:

JavaScript

Full reference can be found here: https://www.mono-project.com/docs/tools+libraries/tools/monodis/

Dis/Assembling CIL Code (Mono Project)

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement