Table of Contents

ToString Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Convertible.cs

ToString(byte[], Action<EncodingOptions>)

Converts the specified byte array to its string representation.

public static string ToString(byte[] input, Action<EncodingOptions> setup = null)

Parameters

input byte[]

The byte array to convert.

setup Action<EncodingOptions>

The delegate that configures the encoding behavior.

Returns

string

A string that represents input.

Remarks

EncodingOptions is initialized with DefaultPreambleSequence and DefaultEncoding. If the configured encoding is the default encoding, the encoding is detected from the byte order mark when possible.

Exceptions

ArgumentNullException

input is null.

InvalidEnumArgumentException

setup configures an invalid value for Preamble.