![]()
An int value that contains a number from 0 to 15 that corresponds to the specified hexadecimal digit.
Type Reason ArgumentException digit is not a valid hexadecimal digit (0-9, a-f, A-F).
The Uri.FromHex(char) method converts a character representing a hexadecimal digit (0-9, a-f, A-F) to its decimal value (0 to 15). If digit is not a valid hexadecimal digit, an ArgumentException exception is thrown.