Click or drag to resize

HexExtensionFromHex Method

Decode a hex-encoded string

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static byte[] FromHex(
	this string s
)

Parameters

s  String
Input string of hex characters

Return Value

Byte
Decoded byte array

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).
Example
C#
byte[] b = "00010203".FromHex();
See Also