title: Convert IL code to C# at runtime
body: <p>Is there any <strong>free</strong> library that allows to transform IL code to C# at runtime?</p>
  
  <p>Thanks,
  Christian</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is an example of what I have:</p>
  
  <p>In my program, at some point I have a list of strings which resemble the IL code of a class that lies in some assembly:</p>
  
  <pre><code>// =============== CLASS MEMBERS DECLARATION ===================
  
  .class public auto ansi beforefieldinit Probant.Arithmetics
         extends [mscorlib]System.Object
  {
    .method public hidebysig instance int32 
            Sum(int32 a,
                int32 b) cil managed
    {
      // Code size       11 (0xb)
      .maxstack  2
      .locals init ([0] int32 result,
               [1] int32 CS$1$0000)
      IL_0000:  nop
      IL_0001:  ldarg.1
      IL_0002:  ldarg.2
      IL_0003:  add
      IL_0004:  stloc.0
      IL_0005:  ldloc.0
      IL_0006:  stloc.1
      IL_0007:  br.s       IL_0009
  
      IL_0009:  ldloc.1
      IL_000a:  ret
  </code></pre>
  
  <p>Now having this array of strings (each string a line), I would like to somehow generate corresponding C# code. </p>
  
  <p>Does anyone know whether this is possible with <strong>ILSpy</strong>?</p>