Mercury API
ToHex Method (bytes, prefix, separator)
NamespacesThingMagicByteFormatToHex(array<Byte>[]()[], String, String)
Convert byte array to human-readable hex string; e.g., {0x12, 0x34, 0x56} -> 123456
Declaration Syntax
C#Visual BasicVisual C++
public static string ToHex(
	byte[] bytes,
	string prefix,
	string separator
)
Public Shared Function ToHex ( _
	bytes As Byte(), _
	prefix As String, _
	separator As String _
) As String
public:
static String^ ToHex(
	array<unsigned char>^ bytes, 
	String^ prefix, 
	String^ separator
)
Parameters
bytes (array< Byte >[]()[])
Byte array to convert
prefix (String)
String to place before byte strings
separator (String)
String to place between byte strings
Return Value
Human-readable hex string

Assembly: MercuryAPI (Module: MercuryAPI) Version: 1.29.4.34 (1.29.4.34)