EinhugurIntrospectionHelpers.CreateObject Method
Creates instance of class by name.
CreateObject(
className as String) as Object
Parameters
- className
- Name of the class to create instance of.
Returns
- Object
- The newly created class instance (its constructor not having been called yet) or nil if the class type could not be found.
Remarks
This can be useful when creating class when you do not even know its Introspection type.
You must call the classes constructor after creating the instance. Or use the new instance only to get its Introspection type so you can then create object of the given type in normal way.
Supported Platforms:
macOS Intel 32 bitmacOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitiOSUnsupported Platforms:
Linux ARM 64 bit
See Also
EinhugurIntrospectionHelpers Module