BadScript 2
Loading...
Searching...
No Matches
BadDynamicFunctionExtensions_FuncNoContext.cs
Go to the documentation of this file.
3
5
6public static partial class BadDynamicFunctionExtensions
7{
15 public static void SetFunction(
16 this BadObject elem,
17 string propName,
18 Func<BadObject> func,
19 BadClassPrototype returnType)
20 {
21 elem.SetFunction(propName, _ => func(), returnType);
22 }
23
32 public static void SetFunction<T>(
33 this BadObject elem,
34 string propName,
35 Func<T, BadObject> func,
36 BadClassPrototype returnType)
37 {
38 elem.SetFunction<T>(propName, (_, t) => func(t), returnType);
39 }
40
50 public static void SetFunction<T1, T2>(
51 this BadObject elem,
52 string propName,
53 Func<T1, T2, BadObject> func,
54 BadClassPrototype returnType)
55 {
56 elem.SetFunction<T1, T2>(propName, (_, t1, t2) => func(t1, t2), returnType);
57 }
58
69 public static void SetFunction<T1, T2, T3>(
70 this BadObject elem,
71 string propName,
72 Func<T1, T2, T3, BadObject> func,
73 BadClassPrototype returnType)
74 {
75 elem.SetFunction<T1, T2, T3>(propName, (_, t1, t2, t3) => func(t1, t2, t3), returnType);
76 }
77
89 public static void SetFunction<T1, T2, T3, T4>(
90 this BadObject elem,
91 string propName,
92 Func<T1, T2, T3, T4, BadObject> func,
93 BadClassPrototype returnType)
94 {
95 elem.SetFunction<T1, T2, T3, T4>(propName, (_, t1, t2, t3, t4) => func(t1, t2, t3, t4), returnType);
96 }
97
111 this BadObject elem,
112 string propName,
113 Func<T1, T2, T3, T4, T5, BadObject> func,
114 BadClassPrototype returnType)
115 {
116 elem.SetFunction<T1, T2, T3, T4, T5>(
117 propName,
118 (
119 _,
120 t1,
121 t2,
122 t3,
123 t4,
124 t5) => func(t1, t2, t3, t4, t5),
125 returnType
126 );
127 }
128
143 this BadObject elem,
144 string propName,
145 Func<T1, T2, T3, T4, T5, T6, BadObject> func,
146 BadClassPrototype returnType)
147 {
148 elem.SetFunction<T1, T2, T3, T4, T5, T6>(
149 propName,
150 (
151 _,
152 t1,
153 t2,
154 t3,
155 t4,
156 t5,
157 t6) => func(t1, t2, t3, t4, t5, t6),
158 returnType
159 );
160 }
161
177 this BadObject elem,
178 string propName,
179 Func<T1, T2, T3, T4, T5, T6, T7, BadObject> func,
180 BadClassPrototype returnType)
181 {
182 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7>(
183 propName,
184 (
185 _,
186 t1,
187 t2,
188 t3,
189 t4,
190 t5,
191 t6,
192 t7) => func(t1, t2, t3, t4, t5, t6, t7),
193 returnType
194 );
195 }
196
213 this BadObject elem,
214 string propName,
215 Func<T1, T2, T3, T4, T5, T6, T7, T8, BadObject> func,
216 BadClassPrototype returnType)
217 {
218 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8>(
219 propName,
220 (
221 _,
222 t1,
223 t2,
224 t3,
225 t4,
226 t5,
227 t6,
228 t7,
229 t8) => func(t1, t2, t3, t4, t5, t6, t7, t8),
230 returnType
231 );
232 }
233
251 this BadObject elem,
252 string propName,
253 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, BadObject> func,
254 BadClassPrototype returnType)
255 {
256 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
257 propName,
258 (
259 _,
260 t1,
261 t2,
262 t3,
263 t4,
264 t5,
265 t6,
266 t7,
267 t8,
268 t9) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9),
269 returnType
270 );
271 }
272
291 this BadObject elem,
292 string propName,
293 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, BadObject> func,
294 BadClassPrototype returnType)
295 {
296 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
297 propName,
298 (
299 _,
300 t1,
301 t2,
302 t3,
303 t4,
304 t5,
305 t6,
306 t7,
307 t8,
308 t9,
309 t10) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10),
310 returnType
311 );
312 }
313
333 this BadObject elem,
334 string propName,
335 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, BadObject> func,
336 BadClassPrototype returnType)
337 {
338 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
339 propName,
340 (
341 _,
342 t1,
343 t2,
344 t3,
345 t4,
346 t5,
347 t6,
348 t7,
349 t8,
350 t9,
351 t10,
352 t11) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11),
353 returnType
354 );
355 }
356
377 this BadObject elem,
378 string propName,
379 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, BadObject> func,
380 BadClassPrototype returnType)
381 {
382 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
383 propName,
384 (
385 _,
386 t1,
387 t2,
388 t3,
389 t4,
390 t5,
391 t6,
392 t7,
393 t8,
394 t9,
395 t10,
396 t11,
397 t12) => func(
398 t1,
399 t2,
400 t3,
401 t4,
402 t5,
403 t6,
404 t7,
405 t8,
406 t9,
407 t10,
408 t11,
409 t12
410 ),
411 returnType
412 );
413 }
414
436 this BadObject elem,
437 string propName,
438 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, BadObject> func,
439 BadClassPrototype returnType)
440 {
441 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
442 propName,
443 (
444 _,
445 t1,
446 t2,
447 t3,
448 t4,
449 t5,
450 t6,
451 t7,
452 t8,
453 t9,
454 t10,
455 t11,
456 t12,
457 t13) => func(
458 t1,
459 t2,
460 t3,
461 t4,
462 t5,
463 t6,
464 t7,
465 t8,
466 t9,
467 t10,
468 t11,
469 t12,
470 t13
471 ),
472 returnType
473 );
474 }
475
498 this BadObject elem,
499 string propName,
500 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, BadObject> func,
501 BadClassPrototype returnType)
502 {
503 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
504 propName,
505 (
506 _,
507 t1,
508 t2,
509 t3,
510 t4,
511 t5,
512 t6,
513 t7,
514 t8,
515 t9,
516 t10,
517 t11,
518 t12,
519 t13,
520 t14) => func(
521 t1,
522 t2,
523 t3,
524 t4,
525 t5,
526 t6,
527 t7,
528 t8,
529 t9,
530 t10,
531 t11,
532 t12,
533 t13,
534 t14
535 ),
536 returnType
537 );
538 }
539
563 this BadObject elem,
564 string propName,
565 Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, BadObject> func,
566 BadClassPrototype returnType)
567 {
568 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
569 propName,
570 (
571 _,
572 t1,
573 t2,
574 t3,
575 t4,
576 t5,
577 t6,
578 t7,
579 t8,
580 t9,
581 t10,
582 t11,
583 t12,
584 t13,
585 t14,
586 t15) => func(
587 t1,
588 t2,
589 t3,
590 t4,
591 t5,
592 t6,
593 t7,
594 t8,
595 t9,
596 t10,
597 t11,
598 t12,
599 t13,
600 t14,
601 t15
602 ),
603 returnType
604 );
605 }
606}
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< 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(this BadObject elem, string propName, Func< BadObject > func, BadClassPrototype returnType)
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
Implements a Class Prototype for the BadScript Language.
Contains the Extension Classes for Functions.
Contains the Runtime Objects.
Definition BadArray.cs:10