MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 1 as of 2014-03-06 20:56:37
  • CSharp
  • MonoCecil

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

   1 /*
   2 mcs samples.cs
   3 mono sample.exe
   4 */
   5 public class Acme{
   6     public int Add(int arg1,int arg2){
   7       return arg1 + arg2;  
   8     }
   9 }
  10 
  11 public class Sample{
  12     public static void Main(string []args){
  13       new Acme().Add(4,9);  
  14     }
  15 }

Program to rewrite the sample program

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01