Ejemplo n.º 1
0
 /// <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)));
 }
Ejemplo n.º 2
0
 /// <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)));
 }