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; }
private static OpCode OpCodeForConvention(CallingConvention convention) { return convention == CallingConvention.Static ? OpCodes.Call : OpCodes.Callvirt; }
public void Invoke(IMethodRef method, CallingConvention convention) { _il.Emit(OpCodeForConvention(convention), CecilMethodRef.GetReference(method)); }