Class HexEncoder
Provides methods for encoding byte arrays into hexadecimal strings.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public static class HexEncoder
Methods
View SourceEncode(Byte[])
Converts a byte[] to a hexadecimal formatted System.
Declaration
public static string Encode(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System. |
bytes | The bytes. |
Returns
Type | Description |
---|---|
System. |
The System. |
Encode(Byte[], Char, Int32, Int32)
Converts a byte[] to a hexadecimal formatted System.
Declaration
public static string Encode(byte[] bytes, char separator, int blockSize, int blockCount)
Parameters
Type | Name | Description |
---|---|---|
System. |
bytes | The bytes. |
System. |
separator | The separator. |
System. |
blockSize | The block size. |
System. |
blockCount | The block count. |
Returns
Type | Description |
---|---|
System. |