public Runable(Assembly assembly, string[] args) { var constructor = assembly.GetType("Code").GetConstructor(new Type[] { typeof(string[]) }); _instance = constructor.Invoke(new object[] { args }) as RuntimeBase; _instance.Progress += OnProgress; _instance.Select += OnSelect; _instance.Highlight += OnHighlight; _runType = assembly.GetType("Code"); }