Table of Contents

ToEncodedString Method

Definition

Namespace
Cuemon.IO
Assemblies
Cuemon.IO.dll
Source
src/Cuemon.IO/Extensions/StreamDecoratorExtensions.cs

ToEncodedString(IDecorator<Stream>, Action<StreamReaderOptions>)

Converts the enclosed Stream of the specified decorator to a string.

public static string ToEncodedString(this IDecorator<Stream> decorator, Action<StreamReaderOptions> setup = null)

Parameters

decorator IDecorator<Stream>

The IDecorator<T> to extend.

setup Action<StreamReaderOptions>

The StreamReaderOptions which may be configured.

Returns

string

A string containing the result of the enclosed Stream of the specified decorator.

Remarks

Exceptions

ArgumentNullException

decorator cannot be null.

InvalidEnumArgumentException

setup was initialized with an invalid Preamble.