Returns the numerical value of the given hex digit character.
Namespace:
CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Parameters
- ch
-
Type: char
CardHex digit in any of the ranges '0' through '9', 'a' through 'f', or 'A' through 'F'. If any other character is given, then an ArgumentOutOfRangeException will be thrown.
Return Value
Type: intReturns the numerical value of the given hex digit in the range from 0 through 15.
Exception type | Condition |
---|---|
Thrown when one or more arguments are outside the required range. |
Marc, 9/29/2022.