コード例 #1
0
ファイル: SGFNode.cs プロジェクト: nerai/GoSharp
 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();
            }
        }