Mono Cecil
Cecil is a library written by Jb Evain to generate and inspect programs and libraries in the ECMA CIL format. It has full support for generics, and support some debugging symbol format.
http://www.mono-project.com/Cecil
http://www.mono-project.com/Cecil:FAQ
https://github.com/jbevain/cecil/wiki/Importing
Download Cecil assembly http://obfuscar.googlecode.com/svn-history/r83/trunk/ThirdParty/Mono/Mono.Cecil.dll
IL Code rewriting
Sample program to change with Mono.Cecil
Program to rewrite the sample program