StringExtensionsHexStringToByteArray Method |
Hex string to byte array.
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static byte[] HexStringToByteArray(
this string hex
)
<ExtensionAttribute>
Public Shared Function HexStringToByteArray (
hex As String
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ HexStringToByteArray(
String^ hex
)
[<ExtensionAttribute>]
static member HexStringToByteArray :
hex : string -> byte[]
Parameters
- hex
- Type: SystemString
input string.
Return Value
Type:
Byte
hex as a byte[].
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also