Пример #1
0
 internal void Read(TextReader sr)
 {
     char c = (char)sr.Read();
     if (c != ';')
         throw new InvalidDataException("Node doesn't begin with a ';'.");
     sr.EatWS();
     while (char.IsUpper((char)sr.Peek()))
     {
         SGFProperty prop = new SGFProperty();
         prop.Read(sr);
         Properties.Add(prop);
         sr.EatWS();
     }
 }
Пример #2
0
        internal void Read(TextReader sr)
        {
            char c = (char)sr.Read();

            if (c != ';')
            {
                throw new InvalidDataException("Node doesn't begin with a ';'.");
            }
            sr.EatWS();
            while (char.IsUpper((char)sr.Peek()))
            {
                SGFProperty prop = new SGFProperty();
                prop.Read(sr);
                Properties.Add(prop);
                sr.EatWS();
            }
        }