[Mono-dev] Using Ilasm parser on other applications

Jb Evain mono at evain.net
Sun May 7 19:59:31 EDT 2006


On May 7, 2006, at 10:52 PM, Alejandro Serrano wrote:
> I mean getting the IL source file and parsing it to get the  
> methods, classes, defined in the file..., something like an IDE  
> does with source codes. Does Cecil implement this functionality? I  
> thought it just worked for already compiled assemblies. Which  
> classes should I use for the task?

Using Cecil, you can build assemblies from scratch, by creating an  
object graph, and serializing it back. But it does not parse CIL text  
files. If you have to, you'll need to use or extend the ilasm parser.  
Have a look at ilasm's Driver.cs to see how you can embed it.


More information about the Mono-devel-list mailing list