When does NewInstance fail?
Monkey Forums/Monkey Programming/When does NewInstance fail?
| ||
I am getting a list of reflected classes like so: For Local clas:=Eachin GetClasses() Then I am executing this line: local obj:Object=clas.NewInstance() It throws the error: Error "Can't create instance of class" So how do I make it work? The answer can't be that it is not on the reflection filter cos I got the class from GetClasses() |
| ||
Oh, it was because the class didnt have any methods or fields :) |