public static Boolean Is_Unbox(this VirtualOpCode ins) { OperandType operandType; return(ins.DelegateMethod.MatchesEntire(Code.Ret) && ins.TryGetOperandType(out operandType) && operandType == OperandType.InlineType); }
public static Boolean _Is_Ldc(VirtualOpCode ins, OperandType expectedOperandType) { OperandType operandType; return(ins.MatchesEntire(Pattern_Ldc) && ins.TryGetOperandType(out operandType) && operandType == expectedOperandType); }
public static Boolean Is_Nop(this VirtualOpCode ins) { // Three virtual opcodes match this. One of them makes sense to be Nop, // unsure what the other two are (maybe Endfault, Endfilter). OperandType operandType; return(ins.DelegateMethod.MatchesEntire(Code.Ret) && ins.TryGetOperandType(out operandType) && operandType == OperandType.InlineNone); }
public static Boolean _Is_Ldc(VirtualOpCode ins, OperandType expectedOperandType) { OperandType operandType; return ins.MatchesEntire(Pattern_Ldc) && ins.TryGetOperandType(out operandType) && operandType == expectedOperandType; }