BadScript 2
Loading...
Searching...
No Matches
BadDynamicFunctionExtensions_ActionNoContext.cs
Go to the documentation of this file.
2
4
5public static partial class BadDynamicFunctionExtensions
6{
13 public static void SetFunction(this BadObject elem, string propName, Action func)
14 {
15 elem.SetFunction(propName, _ => func());
16 }
17
25 public static void SetFunction<T>(this BadObject elem, string propName, Action<T> func)
26 {
27 elem.SetFunction<T>(propName, (_, t) => func(t));
28 }
29
38 public static void SetFunction<T1, T2>(this BadObject elem, string propName, Action<T1, T2> func)
39 {
40 elem.SetFunction<T1, T2>(propName, (_, t1, t2) => func(t1, t2));
41 }
42
52 public static void SetFunction<T1, T2, T3>(this BadObject elem, string propName, Action<T1, T2, T3> func)
53 {
54 elem.SetFunction<T1, T2, T3>(propName, (_, t1, t2, t3) => func(t1, t2, t3));
55 }
56
67 public static void SetFunction<T1, T2, T3, T4>(this BadObject elem, string propName, Action<T1, T2, T3, T4> func)
68 {
69 elem.SetFunction<T1, T2, T3, T4>(propName, (_, t1, t2, t3, t4) => func(t1, t2, t3, t4));
70 }
71
84 this BadObject elem,
85 string propName,
86 Action<T1, T2, T3, T4, T5> func)
87 {
88 elem.SetFunction<T1, T2, T3, T4, T5>(
89 propName,
90 (
91 _,
92 t1,
93 t2,
94 t3,
95 t4,
96 t5) => func(t1, t2, t3, t4, t5)
97 );
98 }
99
113 this BadObject elem,
114 string propName,
115 Action<T1, T2, T3, T4, T5, T6> func)
116 {
117 elem.SetFunction<T1, T2, T3, T4, T5, T6>(
118 propName,
119 (
120 _,
121 t1,
122 t2,
123 t3,
124 t4,
125 t5,
126 t6) => func(t1, t2, t3, t4, t5, t6)
127 );
128 }
129
144 this BadObject elem,
145 string propName,
146 Action<T1, T2, T3, T4, T5, T6, T7> func)
147 {
148 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7>(
149 propName,
150 (
151 _,
152 t1,
153 t2,
154 t3,
155 t4,
156 t5,
157 t6,
158 t7) => func(t1, t2, t3, t4, t5, t6, t7)
159 );
160 }
161
177 this BadObject elem,
178 string propName,
179 Action<T1, T2, T3, T4, T5, T6, T7, T8> func)
180 {
181 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8>(
182 propName,
183 (
184 _,
185 t1,
186 t2,
187 t3,
188 t4,
189 t5,
190 t6,
191 t7,
192 t8) => func(t1, t2, t3, t4, t5, t6, t7, t8)
193 );
194 }
195
212 this BadObject elem,
213 string propName,
214 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> func)
215 {
216 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
217 propName,
218 (
219 _,
220 t1,
221 t2,
222 t3,
223 t4,
224 t5,
225 t6,
226 t7,
227 t8,
228 t9) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9)
229 );
230 }
231
249 this BadObject elem,
250 string propName,
251 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> func)
252 {
253 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
254 propName,
255 (
256 _,
257 t1,
258 t2,
259 t3,
260 t4,
261 t5,
262 t6,
263 t7,
264 t8,
265 t9,
266 t10) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10)
267 );
268 }
269
288 this BadObject elem,
289 string propName,
290 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> func)
291 {
292 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
293 propName,
294 (
295 _,
296 t1,
297 t2,
298 t3,
299 t4,
300 t5,
301 t6,
302 t7,
303 t8,
304 t9,
305 t10,
306 t11) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11)
307 );
308 }
309
329 this BadObject elem,
330 string propName,
331 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> func)
332 {
333 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
334 propName,
335 (
336 _,
337 t1,
338 t2,
339 t3,
340 t4,
341 t5,
342 t6,
343 t7,
344 t8,
345 t9,
346 t10,
347 t11,
348 t12) => func(
349 t1,
350 t2,
351 t3,
352 t4,
353 t5,
354 t6,
355 t7,
356 t8,
357 t9,
358 t10,
359 t11,
360 t12
361 )
362 );
363 }
364
385 this BadObject elem,
386 string propName,
387 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> func)
388 {
389 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
390 propName,
391 (
392 _,
393 t1,
394 t2,
395 t3,
396 t4,
397 t5,
398 t6,
399 t7,
400 t8,
401 t9,
402 t10,
403 t11,
404 t12,
405 t13) => func(
406 t1,
407 t2,
408 t3,
409 t4,
410 t5,
411 t6,
412 t7,
413 t8,
414 t9,
415 t10,
416 t11,
417 t12,
418 t13
419 )
420 );
421 }
422
444 this BadObject elem,
445 string propName,
446 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> func)
447 {
448 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
449 propName,
450 (
451 _,
452 t1,
453 t2,
454 t3,
455 t4,
456 t5,
457 t6,
458 t7,
459 t8,
460 t9,
461 t10,
462 t11,
463 t12,
464 t13,
465 t14) => func(
466 t1,
467 t2,
468 t3,
469 t4,
470 t5,
471 t6,
472 t7,
473 t8,
474 t9,
475 t10,
476 t11,
477 t12,
478 t13,
479 t14
480 )
481 );
482 }
483
506 this BadObject elem,
507 string propName,
508 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> func)
509 {
510 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
511 propName,
512 (
513 _,
514 t1,
515 t2,
516 t3,
517 t4,
518 t5,
519 t6,
520 t7,
521 t8,
522 t9,
523 t10,
524 t11,
525 t12,
526 t13,
527 t14,
528 t15) => func(
529 t1,
530 t2,
531 t3,
532 t4,
533 t5,
534 t6,
535 t7,
536 t8,
537 t9,
538 t10,
539 t11,
540 t12,
541 t13,
542 t14,
543 t15
544 )
545 );
546 }
547}
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7 > func)
Sets a Function on the given Object.
static void SetFunction(this BadObject elem, string propName, Action func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 > func)
Sets a Function on the given Object.
static void SetFunction< T >(this BadObject elem, string propName, Action< BadExecutionContext, T > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6 > func)
Sets a Function on the given Object.
static void SetFunction< T1, T2, T3, T4, T5, T6, T7, T8 >(this BadObject elem, string propName, Action< BadExecutionContext, T1, T2, T3, T4, T5, T6, T7, T8 > func)
Sets a Function on the given Object.
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
Contains the Extension Classes for Functions.
Contains the Runtime Objects.
Definition BadArray.cs:10