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