Convert the specified string representation of a value consisting of hexadecimal (base 16) digits to an equivalent array of 8-bit unsigned integers.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static byte[] FromHex(
string s
)
Public Shared Function FromHex (
s As String
) As Byte()
Parameters
- s String
- Hex-encoded string
Return Value
ByteBinary data in byte array, or an empty array on error.
RemarksWhitespace and ASCII punctuation characters are ignored,
but other non-hex characters will cause an error.
See Also