/// <summary>Creates a CodeInstruction calling a method (CALL)</summary> /// <param name="expression">The lambda expression using the method</param> /// <returns></returns> /// public static CodeInstruction Call(LambdaExpression expression) { return(new CodeInstruction(OpCodes.Call, SymbolExtensions.GetMethodInfo(expression))); }
/// <summary>Creates a CodeInstruction calling a method (CALL)</summary> /// <param name="expression">The lambda expression using the method</param> /// <returns></returns> /// public static CodeInstruction Call <T, TResult>(Expression <Func <T, TResult> > expression) { return(new CodeInstruction(OpCodes.Call, SymbolExtensions.GetMethodInfo(expression))); }