Stackoverflow recommended something like this:
void someMethod(Type t)
{
object myInstance = (t.GetConstructor(null)).Invoke(null)
}
or like this:
void someMethod<T>(T type) where T : new()
{
object myInstance = new T();
}
but none of these methods work because they use classes forbidden by playerio.
Anyone know some way to do this that is compatible with playerio?