// Returns the variable or null if it's not a ldloc/stloc instruction. It does not return // a local variable if it's a ldloca/ldloca.s instruction. public static VariableDefinition getLocalVar(IList <VariableDefinition> locals, Instr instr) { return(DotNetUtils.getLocalVar(locals, instr.Instruction)); }
public bool isConditionalBranch() { return(DotNetUtils.isConditionalBranch(OpCode.Code)); }
public bool isBrtrue() { return(DotNetUtils.isBrtrue(instruction)); }
public bool isLdloc() { return(DotNetUtils.isLdloc(instruction)); }
public int getLdcI4Value() { return(DotNetUtils.getLdcI4Value(instruction)); }
public bool isLdcI4() { return(DotNetUtils.isLdcI4(OpCode.Code)); }