public static Neo.ASML.Node.ASMProject Compile(byte[] dll) { var proj = new Neo.ASML.Node.ASMProject(); CompileContext context = new CompileContext(); context.OpenDLL(dll); foreach (var t in context.module.Types) { foreach (var m in t.Methods) { CompileMethod(context, proj, m); } } return(proj); }