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