Table of Contents

CreateHexadecimal Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/StringFactory.cs

CreateHexadecimal(byte[])

Creates a hexadecimal string representation of the specified byte array.

public static string CreateHexadecimal(byte[] value)

Parameters

value byte[]

The byte array to convert.

Returns

string

A hexadecimal string representation of value.

Exceptions

ArgumentNullException

value is null.

CreateHexadecimal(string, Action<EncodingOptions>)

Creates a hexadecimal string representation of the specified string.

public static string CreateHexadecimal(string value, Action<EncodingOptions> setup = null)

Parameters

value string

The string to convert.

setup Action<EncodingOptions>

The delegate that configures the encoding behavior.

Returns

string

A hexadecimal string representation of value.

Exceptions

ArgumentNullException

value is null.

InvalidEnumArgumentException

setup configures an invalid value for Preamble.