Table of Contents

ToEncodedString Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/ByteExtensions.cs

ToEncodedString(byte[], Action<EncodingOptions>)

Converts the specified bytes to a string using the provided preferred encoding.

public static string ToEncodedString(this byte[] bytes, Action<EncodingOptions> setup = null)

Parameters

bytes byte[]

The byte array to extend.

setup Action<EncodingOptions>

The EncodingOptions which need to be configured.

Returns

string

A string containing the results of decoding the specified sequence of bytes.

Remarks