/// <summary> /// Call an instance method as lambda expression and save value. /// </summary> /// <param name="targetVariable"></param> /// <param name="variable"></param> /// <param name="name"></param> /// <param name="parameters"></param> /// <returns></returns> public static void Let <T>(this Queue <CallAction> queue, string targetVariable, string variable, Expression <Action <T> > action) { queue.Enqueue(CallAction.Let <T>(targetVariable, variable, action)); }
/// <summary> /// Create a static call and save the results to a variable /// </summary> /// <param name="target"></param> /// <param name="type"></param> /// <param name="name"></param> /// <param name="parameters"></param> /// <returns></returns> public static void Let(this Queue <CallAction> queue, string target, Type type, string name, params object[] parameters) { queue.Enqueue(CallAction.Let(target, type, name, parameters)); }