public invoke(args as Object[]) as ReturnType throws Exception
Invokes the entity with dynamic arguments.
| Parameter | Description |
|---|---|
args | Arguments as Object array (use empty array for no args). |
Result of type ReturnType.
import klyn.reflection
f = eval("def fct(a as Int, b as Int): return a + b")
result = f.invoke([10, 20]) as Int