C # is usually compiled into .NET bytecode (called CIL or MSIL ) and then JIT ("Just In Time"), compiled into native code when the program is actually running. There are early compilers for C #, for example Mono AOT , so you can compile a C # program through one of them and then parse it. The result is likely to be very difficult.
Most likely, you can look at bytecodes, which are slightly higher than the processor assembly code that you can do using ILdasm on a compiled .exe program in C #.
source share