public static void ToWriter(IAssembly asm, string lang, TextWriter writer) { string format = string.Format("lang = {0}; mode = full", lang); var swr = new SyntaxWriter(writer); swr.Init(format); swr.Write(asm); }