[Mono-list] Disassembler/bytecode manipulation

Miguel de Icaza miguel@ximian.com
29 Oct 2002 22:51:37 -0500


>    I found a tool included in MS .Net SDK (ILDASM.exe)... Is there an 
> equivalent tool planned in Mono?

monodis.

> 
>    I'm not familiar with C#/Mono, so I don't know if it is possible to modify 
> C# bytecode at load-time. (Is there a "loader" class accessible to the user?)

You can generate your own code on the flight using
system.reflection.emit

>    The idea is to implement a tool written in C#, which is capable to introduce 
> a set of instructions in a compiled application (which does not modify the 
> behavior of the application), and to generate a new executable that can be 
> executed normally (the additional instructions are typically used for 
> accounting).

Then you want to look into Mono.PEToolkit.

Miguel