src/Shared/EntityFramework/Core/Common/EntitySql/AST/Literal.cs
// <summary>
// Parse single hex char.
// PRECONDITION - hexChar must be a valid hex digit.
// </summary>
Parse single hex char.
PRECONDITION - hexChar must be a valid hex digit.
Parse single hex char . PRECONDITION - hexChar must be a valid hex digit .
private static int HexDigitToBinaryValue(char hexChar)
        {
            if (hexChar >= '0'
                && hexChar <= '9')
            {
                return (hexChar - '0');
            }
            if (hexChar >= 'A'
                && hexChar <= 'F')
            {
                return (hexChar - 'A') + 10;
            }
            if (hexChar >= 'a'
                && hexChar <= 'f')
            {
                return (hexChar - 'a') + 10;
            }
            throw new ArgumentOutOfRangeException("hexChar");
        }
private static int HexDigitToBinaryValue ( char hexChar ) { if ( hexChar >= ' ' && hexChar <= ' ' ) { return ( hexChar - ' ' ) ; } if ( hexChar >= ' ' && hexChar <= ' ' ) { return ( hexChar - ' ' ) + 10 ; } if ( hexChar >= ' ' && hexChar <= ' ' ) { return ( hexChar - ' ' ) + 10 ; } throw new ArgumentOutOfRangeException ( " " ) ; }
Parse single hex char.
Parse single hex char .
hexChar
char