private void GenerateScriptCore(TextWriter writer) { ScriptGenerator scriptGenerator = new ScriptGenerator(writer, _options, this); scriptGenerator.GenerateScript(_symbols); }
private string GenerateScriptCore() { StringWriter scriptWriter = new StringWriter(); try { ScriptGenerator scriptGenerator = new ScriptGenerator(scriptWriter, _options, _symbols); scriptGenerator.GenerateScript(_symbols); } catch (Exception e) { Debug.Fail(e.ToString()); } finally { scriptWriter.Flush(); } return scriptWriter.ToString(); }