public void Start() { textEditor.CreateCode(); textEditor.Save(); compiller.Compile(); clr.Execute(); }
public void Run() { _textEditor.CreateCode(); _textEditor.Save(); _compiller.Compile(); _clr.Execute(); }
// Вы ввели код, IDE выполняет с ним примерно следующие действия перед запуском: public void Start(string sourceCode) { // Пишет в текстовый файл _editor.Write(sourceCode); // Сохраняет текстовый файл _editor.Save(); // Вызывает компилятор _compiler.Compile(); // Запускает выполнение скомпилированного приложения в среде CLR _runtime.Execute(); }