Beispiel #1
0
        public static Stanza Read(TextReader rdr)
        {
            Stanza stanza = new Stanza();
            string line = rdr.ReadLine();

            while (line != null && line != "%")
            {
                if (!line.StartsWith("#"))
                    stanza.AddLine(line);

                line = rdr.ReadLine();
            }

            stanza.ProcessLines();

            return stanza;
        }
Beispiel #2
0
        public static Stanza Read(TextReader rdr)
        {
            Stanza stanza = new Stanza();
            string line   = rdr.ReadLine();

            while (line != null && line != "%")
            {
                if (!line.StartsWith("#"))
                {
                    stanza.AddLine(line);
                }

                line = rdr.ReadLine();
            }

            stanza.ProcessLines();

            return(stanza);
        }