Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static Boolean _Is_Ldc(VirtualOpCode ins, OperandType expectedOperandType)
        {
            OperandType operandType;

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