示例#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;
        }
示例#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);
        }