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(); } }
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(); } }