new Instance
Creates a new instance of the given type.
Parameters
T
The type of object to create.
injectFields
Whether to inject the fields & methods of he newly created instance before returning it.
Creates a new instance of the given type.
The type of object to create.
Whether to inject the fields & methods of he newly created instance before returning it.