Did you know that you can build/modify classes from code? It is actually not so hard, just use the ClassBuild-class.
The sample above will create a new class MyTest with a ‘Hello World’ Main-method and will actually save compile/save the code in the AOT and then run it. Cool?
Note: The SysDictClass/SysDictMethod-class can also help you creating proper classes and methods. Maybe I’ll blog about this later.
1 | static void Kishor_testClassBuild(Args _args) |
Note: The SysDictClass/SysDictMethod-class can also help you creating proper classes and methods. Maybe I’ll blog about this later.
Aucun commentaire:
Enregistrer un commentaire