sdk/dotnet/src/Microsoft.Datasync.Client/Query/OData/ODataExpressionParser.cs
/// <summary>
/// Validates that the token is of the specified type, throwing an exception if not.
/// </summary>
/// <param name="tokenKind">The expected token kind.</param>
/// <param name="message">The error message if the token kind doesn't match.</param>
Validates that the token is of the specified type, throwing an exception if not.
Validates that the token is of the specified type throwing an exception if not .
private void ValidateTokenIsType(QueryTokenKind tokenKind, string message)
        {
            if (lexer.Token.Kind != tokenKind)
            {
                throw new ODataException(message, lexer.Text, lexer.Token.Position);
            }
        }
private void ValidateTokenIsType ( QueryTokenKind tokenKind , string message ) { if ( lexer . Token . Kind != tokenKind ) { throw new ODataException ( message , lexer . Text , lexer . Token . Position ) ; } }
Validates that the token is of the specified type, throwing an exception if not.
Validates that the token is of the specified type throwing an exception if not .
tokenKind
QueryTokenKind
The expected token kind.
The expected token kind .
message
string
The error message if the token kind doesn't match.
The error message if the token kind doesn ' t match .