Click or drag to resize

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
Syntax
public static byte[] HexStringToByteArray(
	string value
)
View Source

Parameters

value
Type: SystemString
The string containing the hexadecimal value.

Return Value

Type: Byte
An array of bytes, or , if value is or empty.
Exceptions
ExceptionCondition
CodedFormatExceptionvalue contains at least one character that is not a valid hexadecimal digit.
Remarks
The value may be prefixed by 0x; the method is case-insensitive.
See Also