Posted May 30, 20169 yr How to add instruction without operand in dnlib, For example I wanted add Call opcode without operand, Is it possible? Edited May 30, 20169 yr by Perplex
May 30, 20169 yr 8 hours ago, Perplex said: I wanted add invalid instruction to for each mehod. IL code is compiled to native asm code on runtime, and even if you would just jump over this "invalid" instruction, the .net runtime wouldn't know how to parse this, causing your program to crash. You'd have to remove this instruction before you call this function. Otherwise, if you want, just try and see for yourself method.Body.Instructions.Add( OpCodes.Call.ToInstruction( ) ); Edited May 30, 20169 yr by A200K
Create an account or sign in to comment