Exemplo n.º 1
0
 public MethodCallValue(IMethodRef method, CallingConvention
     callingConvention, IComparisonOperandAnchor parent, IComparisonOperand[] args) :
         base(parent)
 {
     _method = method;
     _args = args;
     _callingConvention = callingConvention;
 }
Exemplo n.º 2
0
		public MethodCallValue(IMethodRef method, Db4objects.Db4o.Instrumentation.Api.CallingConvention
			 callingConvention, IComparisonOperandAnchor parent, IComparisonOperand[] args) : 
			base(parent)
		{
			_method = method;
			_args = args;
			_callingConvention = callingConvention;
		}
Exemplo n.º 3
0
 public MethodCallValue(IMethodRef method, Db4objects.Db4o.Instrumentation.Api.CallingConvention
                        callingConvention, IComparisonOperandAnchor parent, IComparisonOperand[] args) :
     base(parent)
 {
     _method            = method;
     _args              = args;
     _callingConvention = callingConvention;
 }
Exemplo n.º 4
0
 private static OpCode OpCodeForConvention(CallingConvention convention)
 {
     return convention == CallingConvention.Static
         ? OpCodes.Call
         : OpCodes.Callvirt;
 }
Exemplo n.º 5
0
 public void Invoke(IMethodRef method, CallingConvention convention)
 {
     _il.Emit(OpCodeForConvention(convention), CecilMethodRef.GetReference(method));
 }