Example #1
0
 internal static Delegate MakeRunVoid15 <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(LightLambda lambda)
 {
     return(new Action <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(lambda.RunVoid15 <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>));
 }
Example #2
0
 internal static Delegate MakeRunVoid1 <T0>(LightLambda lambda)
 {
     return(new Action <T0>(lambda.RunVoid1 <T0>));
 }
Example #3
0
 internal static Delegate MakeRun1 <T0, TRet>(LightLambda lambda)
 {
     return(new Func <T0, TRet>(lambda.Run1 <T0, TRet>));
 }
Example #4
0
 internal static Delegate MakeRun15 <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet>(LightLambda lambda)
 {
     return(new Func <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet>(lambda.Run15 <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TRet>));
 }
Example #5
0
 internal static Delegate MakeRunVoid9 <T0, T1, T2, T3, T4, T5, T6, T7, T8>(LightLambda lambda)
 {
     return(new Action <T0, T1, T2, T3, T4, T5, T6, T7, T8>(lambda.RunVoid9 <T0, T1, T2, T3, T4, T5, T6, T7, T8>));
 }
Example #6
0
 internal static Delegate MakeRunVoid0(LightLambda lambda)
 {
     return(new Action(lambda.RunVoid0));
 }
Example #7
0
 internal static Delegate MakeRun7 <T0, T1, T2, T3, T4, T5, T6, TRet>(LightLambda lambda)
 {
     return(new Func <T0, T1, T2, T3, T4, T5, T6, TRet>(lambda.Run7 <T0, T1, T2, T3, T4, T5, T6, TRet>));
 }
Example #8
0
 internal static Delegate MakeRunVoid5 <T0, T1, T2, T3, T4>(LightLambda lambda)
 {
     return(new Action <T0, T1, T2, T3, T4>(lambda.RunVoid5 <T0, T1, T2, T3, T4>));
 }
Example #9
0
 protected object?InterpretLambdaInvoke(LightLambda targetLambda, object?[] args)
 {
     return(ProducedStack > 0 ? targetLambda.Run(args) : targetLambda.RunVoid(args));
 }