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