klyn.Type.getConstructor
method
public getConstructor() as Constructor:
Description

Returns the zero-argument constructor metadata.

Returns

Reflected zero-argument constructor.

Throws
  • TypeError if no zero-argument constructor is registered.
Example
ctor = User.type.getConstructor()
user = ctor([]) as User