Exemplo n.º 1
0
 private void ReadDate()
 {
     do
     {
         int num1 = (int)this.reader.Read();
     }while (!this.reader.End && '#' != this.reader.Current);
     if (this.reader.End || '#' != this.reader.Current)
     {
         throw LexicalException.InvalidDate(this.TokenString);
     }
     this.token = Token.Date;
     int num2 = (int)this.reader.Read();
 }
Exemplo n.º 2
0
        void ReadDate()
        {
            do
            {
                this.reader.Read();
            }while (!this.reader.End && '#' != this.reader.Current); //while (this.pos < this.buffer.Length && '#' != this.reader.Current);

            if (this.reader.End || '#' != this.reader.Current)       //if (this.pos >= this.buffer.Length || '#' != this.reader.Current)
            {
                // Date is invalid
                throw LexicalException.InvalidDate(this.TokenString);
            }

            this.token = Token.Date;
            this.reader.Read();
        }