Create instance using reflection ?

Monkey Forums/Monkey Programming/Create instance using reflection ?

Rushino(Posted 2013) [#1]
It is possible to create a class instance (which is extend from a base class as condition) using reflection in monkey ?


Belimoth(Posted 2013) [#2]
You can use ClassInfo.NewInstance() but this returns an Object. You'll have to cast it yourself. There is no way to dynamically cast something if all you have is the ClassInfo.


Rushino(Posted 2013) [#3]
Alright. At least i have this. :) Thanks!