예제 #1
0
        public static Boolean Is_Unbox(this VirtualOpCode ins)
        {
            OperandType operandType;

            return(ins.DelegateMethod.MatchesEntire(Code.Ret) &&
                   ins.TryGetOperandType(out operandType) &&
                   operandType == OperandType.InlineType);
        }
예제 #2
0
        public static Boolean _Is_Ldc(VirtualOpCode ins, OperandType expectedOperandType)
        {
            OperandType operandType;

            return(ins.MatchesEntire(Pattern_Ldc) &&
                   ins.TryGetOperandType(out operandType) &&
                   operandType == expectedOperandType);
        }
예제 #3
0
        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);
        }
예제 #4
0
		public static Boolean _Is_Ldc(VirtualOpCode ins, OperandType expectedOperandType)
		{
			OperandType operandType;
			return ins.MatchesEntire(Pattern_Ldc)
				&& ins.TryGetOperandType(out operandType)
				&& operandType == expectedOperandType;
		}