Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Parameters
- sHex
-
Type: string
String of hex digits. This string must not be null and must have an even length. If it is null, then an ArgumentNullException will be thrown. The hex digits may be upper or lower case. If it is not of even length or contains characters that are not valid hex digits, then an ArgumentException will be thrown.
Return Value
Type: byte[]Returns a byte array with the byte values of every pair of hex digits in the input string. If the given input string is empty, then the returned byte array is an empty array, too. Generally the size of the returned byte array is half the size of the input string.
Exception type | Condition |
---|---|
Thrown when one or more arguments have unsupported or illegal values. |