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
83 public static void SetFunction<T1, T2, T3, T4, T5>(this BadObject elem,
84 string propName,
85 Action<T1, T2, T3, T4, T5> func)
86 {
87 elem.SetFunction<T1, T2, T3, T4, T5>(propName,
88 (_,
89 t1,
90 t2,
91 t3,
92 t4,
93 t5) => func(t1, t2, t3, t4, t5)
94 );
95 }
96
109 public static void SetFunction<T1, T2, T3, T4, T5, T6>(this BadObject elem,
110 string propName,
111 Action<T1, T2, T3, T4, T5, T6> func)
112 {
113 elem.SetFunction<T1, T2, T3, T4, T5, T6>(propName,
114 (_,
115 t1,
116 t2,
117 t3,
118 t4,
119 t5,
120 t6) => func(t1, t2, t3, t4, t5, t6)
121 );
122 }
123
138 string propName,
139 Action<T1, T2, T3, T4, T5, T6, T7> func)
140 {
141 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7>(propName,
142 (_,
143 t1,
144 t2,
145 t3,
146 t4,
147 t5,
148 t6,
149 t7) => func(t1, t2, t3, t4, t5, t6, t7)
150 );
151 }
152
168 string propName,
169 Action<T1, T2, T3, T4, T5, T6, T7, T8> func)
170 {
171 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8>(propName,
172 (_,
173 t1,
174 t2,
175 t3,
176 t4,
177 t5,
178 t6,
179 t7,
180 t8) => func(t1, t2, t3, t4, t5, t6, t7, t8)
181 );
182 }
183
200 string propName,
201 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> func)
202 {
203 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(propName,
204 (_,
205 t1,
206 t2,
207 t3,
208 t4,
209 t5,
210 t6,
211 t7,
212 t8,
213 t9) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9)
214 );
215 }
216
234 string propName,
235 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9,
236 T10> func)
237 {
238 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(propName,
239 (_,
240 t1,
241 t2,
242 t3,
243 t4,
244 t5,
245 t6,
246 t7,
247 t8,
248 t9,
249 t10) => func(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10)
250 );
251 }
252
271 string propName,
272 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> func)
273 {
274 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(propName,
275 (_,
276 t1,
277 t2,
278 t3,
279 t4,
280 t5,
281 t6,
282 t7,
283 t8,
284 t9,
285 t10,
286 t11) => func(t1,
287 t2,
288 t3,
289 t4,
290 t5,
291 t6,
292 t7,
293 t8,
294 t9,
295 t10,
296 t11
297 )
298 );
299 }
300
320 string propName,
321 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> func)
322 {
323 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(propName,
324 (_,
325 t1,
326 t2,
327 t3,
328 t4,
329 t5,
330 t6,
331 t7,
332 t8,
333 t9,
334 t10,
335 t11,
336 t12) => func(t1,
337 t2,
338 t3,
339 t4,
340 t5,
341 t6,
342 t7,
343 t8,
344 t9,
345 t10,
346 t11,
347 t12
348 )
349 );
350 }
351
372 string propName,
373 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> func)
374 {
375 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(propName,
376 (_,
377 t1,
378 t2,
379 t3,
380 t4,
381 t5,
382 t6,
383 t7,
384 t8,
385 t9,
386 t10,
387 t11,
388 t12,
389 t13) => func(t1,
390 t2,
391 t3,
392 t4,
393 t5,
394 t6,
395 t7,
396 t8,
397 t9,
398 t10,
399 t11,
400 t12,
401 t13
402 )
403 );
404 }
405
427 string propName,
428 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> func)
429 {
430 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(propName,
431 (_,
432 t1,
433 t2,
434 t3,
435 t4,
436 t5,
437 t6,
438 t7,
439 t8,
440 t9,
441 t10,
442 t11,
443 t12,
444 t13,
445 t14) => func(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,
458 t14
459 )
460 );
461 }
462
485 this BadObject elem,
486 string propName,
487 Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> func)
488 {
489 elem.SetFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(propName,
490 (_,
491 t1,
492 t2,
493 t3,
494 t4,
495 t5,
496 t6,
497 t7,
498 t8,
499 t9,
500 t10,
501 t11,
502 t12,
503 t13,
504 t14,
505 t15) => func(t1,
506 t2,
507 t3,
508 t4,
509 t5,
510 t6,
511 t7,
512 t8,
513 t9,
514 t10,
515 t11,
516 t12,
517 t13,
518 t14,
519 t15
520 )
521 );
522 }
523}
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