HResultHelperHexStringToByteArray Method |
[This is preliminary documentation and is subject to change.]
Converts a string of hexadecimal values into a byte array.
Namespace:
NerdyDuck.CodedExceptions
Assembly:
NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntaxpublic static byte[] HexStringToByteArray(
string value
)
Public Shared Function HexStringToByteArray (
value As String
) As Byte()
View SourceParameters
- value
- Type: SystemString
The string containing the hexadecimal value.
Return Value
Type:
ByteAn array of bytes, or
, if
value is
or empty.
ExceptionsException | Condition |
---|
CodedFormatException | value contains at least one character that is not a valid hexadecimal digit. |
RemarksThe value may be prefixed by 0x; the method is case-insensitive.
See Also