public void Start()
 {
     textEditor.CreateCode();
     textEditor.Save();
     compiller.Compile();
     clr.Execute();
 }
예제 #2
0
 public void Run()
 {
     _textEditor.CreateCode();
     _textEditor.Save();
     _compiller.Compile();
     _clr.Execute();
 }
예제 #3
0
        // Вы ввели код, IDE выполняет с ним примерно следующие действия перед запуском:
        public void Start(string sourceCode)
        {
            // Пишет в текстовый файл
            _editor.Write(sourceCode);

            // Сохраняет текстовый файл
            _editor.Save();

            // Вызывает компилятор
            _compiler.Compile();

            // Запускает выполнение скомпилированного приложения в среде CLR
            _runtime.Execute();
        }