public static Lambda Decompile(this MethodBase mb, Domain domain)
 {
     var prev = Domain.Current;
     Domain.Current = domain;
     try { return new Lambda(mb, InvocationStyle.NonVirtual); }
     finally { Domain.Current = prev; }
 }
Exemple #2
0
 public Context(Domain domain, MethodBase method)
 {
     Domain = domain;
     Method = method;
 }
 public static Lambda Decompile(this Semantics semantics, MethodBase mb)
 {
     var domain = new Domain(semantics);
     if (semantics == Domain.Current.Semantics) domain = Domain.Current;
     return mb.Decompile(domain);
 }