ConversionToHex(Byte, HexStyle) Method

Return a string of byte values represented in Hexadecimal.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static string ToHex(
	byte[] value,
	HexStyle style
)

Parameters

value  Byte
Array of bytes to convert to Hex Digits.
style  HexStyle
The Hexadecimal Style to apply to the return string.

Return Value

String
String of Hex Values translated from the caller's byte content.

Remarks

Common Style Combinations:
HexStyle.Single | HexStyle.Prefix. [0x1234].
HexStyle.Single | HexStyle.GUID. [12345678-1234-1234-1234-123456789abc].
HexStyle.Delimited | HexStyle.Prefix. [0x01\t0x02\t0x03].
HexStyle.Delimited | HexStyle.Space. [01 02 03].
HexStyle.Delimited | HexStyle.Prefix | HexStyle.Space | HexStyle.Comma. [0x01, 0x02, 0x03].

See Also