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; }
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; }
public static IndexedEnumerable <T> ToIndexed <T>(this IEnumerable <T> items) { return(IndexedEnumerable <T> .Create(items)); }