public static void test() { WorkerFactory worker = (Worker2)Activator.CreateInstance(Type.GetType("DocumentHandler.Worker2"), config); worker.Work(); }