Table of Contents

ToStream Method

Definition

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

ToStream(IDecorator<byte[]>)

Converts the enclosed byte array of the specified decorator to its equivalent Stream representation.

public static Stream ToStream(this IDecorator<byte[]> decorator)

Parameters

decorator IDecorator<byte[]>

The decorator that wraps the byte array to extend.

Returns

Stream

A Stream that is equivalent to the enclosed byte array of the specified decorator.

Exceptions

ArgumentNullException

decorator cannot be null.