/// <summary> /// Reads a token from the header. /// </summary> /// <returns>The token item that was read from the header.</returns> private HttpHeaderToken ReadNextToken() { HttpHeaderValueLexer item = this.ReadNextTokenOrQuotedString(); if (item.Type == HttpHeaderValueItemType.QuotedString) { throw new ODataException(Strings.HttpHeaderValueLexer_TokenExpectedButFoundQuotedString(this.httpHeaderName, this.httpHeaderValue, this.startIndexOfNextItem)); } return((HttpHeaderToken)item); }