private void DiagnosticButton_Click(object sender, RoutedEventArgs e) { var CompleteSyntax = ScriptStep.GenerateUsingSyntax() + editor.Text; AssemblyGenerator.CompileCode(CompleteSyntax, out string diagnosticMessage); DiagnosticTextBox.Text = diagnosticMessage; }