Beispiel #1
0
        public static string Format(ICodeNode node, string format, IFormatProvider formatProvider)
        {
            var writer = new SyntaxWriter();

            writer.Write(node, format);
            return(writer.ToString());
        }
Beispiel #2
0
        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);
        }