public createInstance(args... as Object) as Object throws Exception:
Creates an instance of this type through reflection.
The selected constructor is the constructor accepting the supplied argument count. Constructors with default trailing parameters can therefore be called with omitted arguments.
| Parameter | Description |
|---|---|
args | Constructor arguments. |
New instance.
user = User.type.createInstance("Alice") as User