상속: IDebug, IBreak, IRuntime
예제 #1
0
        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");
        }
예제 #2
0
        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");
        }