Creates a byte array from the hexadecimal string. Each two characters are combined to create one byte. First two hexadecimal characters become first byte in returned array. Non-hexadecimal characters are ignored.

Syntax

public static Byte[] GetBytes(
   string hexString, 
   out int discarded
)

Parameters

hexString
string to convert to byte array
discarded
number of characters in string ignored

Return Value

byte array, in the same left-to-right order as the hexString

Framework

.NET Framework.NET Framework

Supported version: 2.0, 3.0, 3.5, 4.0, 4.5.x, 4.6.x and later
Assembly: ComponentPro.Saml (in ComponentPro.Saml.dll)

See Also