Esempio n. 1
0
 /// <summary>
 /// Creates a method invocation with the given typed argument values.
 /// </summary>
 public static MethodInvocation Create <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(object target, MethodBase method, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14)
 => new MethodInvocation(target, method, ArgumentCollection.Create(method.GetParameters(), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14));
Esempio n. 2
0
 /// <summary>
 /// Creates a method invocation with the given typed argument values.
 /// </summary>
 public static MethodInvocation Create <T1, T2, T3, T4>(object target, MethodBase method, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
 => new MethodInvocation(target, method, ArgumentCollection.Create(method.GetParameters(), arg1, arg2, arg3, arg4));
Esempio n. 3
0
 /// <summary>
 /// Creates a method invocation with the given typed argument values.
 /// </summary>
 public static MethodInvocation Create <T1, T2, T3, T4, T5, T6, T7, T8>(object target, MethodBase method, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
 => new MethodInvocation(target, method, ArgumentCollection.Create(method.GetParameters(), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8));
Esempio n. 4
0
 /// <summary>
 /// Creates a method invocation with the given typed argument values.
 /// </summary>
 public static MethodInvocation Create <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(object target, MethodBase method, ExecuteHandler implementation, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11)
 => new MethodInvocation(target, method, implementation, ArgumentCollection.Create(method.GetParameters(), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11));
Esempio n. 5
0
 /// <summary>
 /// Creates a method invocation with the given typed argument value.
 /// </summary>
 /// <param name="target">The target of the invocation.</param>
 /// <param name="method">The method being invoked.</param>
 /// <param name="arg">The argument value</param>
 public static MethodInvocation Create <T>(object target, MethodBase method, T arg)
 => new MethodInvocation(target, method, ArgumentCollection.Create(method.GetParameters(), arg));
Esempio n. 6
0
 /// <summary>
 /// Creates a method invocation with the given typed argument values.
 /// </summary>
 public static MethodInvocation Create <T1, T2>(object target, MethodBase method, ExecuteHandler implementation, T1 arg1, T2 arg2)
 => new MethodInvocation(target, method, implementation, ArgumentCollection.Create(method.GetParameters(), arg1, arg2));
Esempio n. 7
0
 /// <summary>
 /// Creates a method invocation with the given typed argument values.
 /// </summary>
 public static MethodInvocation Create <T1, T2, T3, T4, T5, T6>(object target, MethodBase method, ExecuteHandler implementation, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
 => new MethodInvocation(target, method, implementation, ArgumentCollection.Create(method.GetParameters(), arg1, arg2, arg3, arg4, arg5, arg6));
Esempio n. 8
0
 /// <summary>
 /// Creates the method invocation return that ends the current invocation.
 /// </summary>
 public static IMethodReturn CreateReturn <T1, T2, T3, T4, T5, T6, T7>(this IMethodInvocation invocation, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
 => invocation.CreateValueReturn(null, ArgumentCollection.Create(invocation.MethodBase.GetParameters(), arg1, arg2, arg3, arg4, arg5, arg6, arg7));
Esempio n. 9
0
 /// <summary>
 /// Creates the method invocation return that ends the current invocation.
 /// </summary>
 public static IMethodReturn CreateReturn <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(this IMethodInvocation invocation, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13)
 => invocation.CreateValueReturn(null, ArgumentCollection.Create(invocation.MethodBase.GetParameters(), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13));
Esempio n. 10
0
 /// <summary>
 /// Creates the method invocation return that ends the current invocation.
 /// </summary>
 public static IMethodReturn CreateReturn <T1, T2, T3>(this IMethodInvocation invocation, T1 arg1, T2 arg2, T3 arg3)
 => invocation.CreateValueReturn(null, ArgumentCollection.Create(invocation.MethodBase.GetParameters(), arg1, arg2, arg3));
Esempio n. 11
0
 /// <summary>
 /// Creates the method invocation return that ends the current invocation.
 /// </summary>
 public static IMethodReturn CreateReturn <T>(this IMethodInvocation invocation, T arg)
 => invocation.CreateValueReturn(null, ArgumentCollection.Create(invocation.MethodBase.GetParameters(), arg));
Esempio n. 12
0
 /// <summary>
 /// Creates the method invocation return that ends the current invocation for a non-void method.
 /// </summary>
 public static IMethodReturn CreateValueReturn <TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IMethodInvocation invocation, TResult result, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
 => invocation.CreateValueReturn(result, ArgumentCollection.Create(invocation.MethodBase.GetParameters(), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10));
Esempio n. 13
0
 /// <summary>
 /// Creates the method invocation return that ends the current invocation for a non-void method.
 /// </summary>
 public static IMethodReturn CreateValueReturn <TResult, T1, T2, T3, T4, T5>(this IMethodInvocation invocation, TResult result, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
 => invocation.CreateValueReturn(result, ArgumentCollection.Create(invocation.MethodBase.GetParameters(), arg1, arg2, arg3, arg4, arg5));
Esempio n. 14
0
 /// <summary>
 /// Creates a method invocation with the given typed argument values.
 /// </summary>
 public static MethodInvocation Create <T1, T2, T3, T4, T5>(object target, MethodBase method, ExecuteHandler callBase, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
 => new MethodInvocation(target, method, callBase, ArgumentCollection.Create(method.GetParameters(), arg1, arg2, arg3, arg4, arg5));