Example #1
0
 public FunctionInvocation(MethodInfo methodInfo, IEnumerable <InvocationArgument> arguments, T proceedingTarget, Func <T, TReturnType> proceedingMethod)
 {
     MethodInfo     = methodInfo;
     Arguments      = new IndexedEnumerable <InvocationArgument, string>(x => x.Parameter.Name, arguments);
     _proceedMethod = proceedingMethod;
     Target         = proceedingTarget;
 }
Example #2
0
 public VoidInvocation(MethodInfo methodInfo, IEnumerable <InvocationArgument> arguments, T proceedingTarget, Action <T> proceedingMethod)
 {
     MethodInfo     = methodInfo;
     Arguments      = new IndexedEnumerable <InvocationArgument, string>(x => x.Parameter.Name, arguments);
     Target         = proceedingTarget;
     _proceedMethod = proceedingMethod;
 }
Example #3
0
 public static IndexedEnumerable <T> ToIndexed <T>(this IEnumerable <T> items)
 {
     return(IndexedEnumerable <T> .Create(items));
 }