Table of Contents

CopyXmlStream Method

Definition

Namespace
Cuemon.Extensions.Xml
Assemblies
Cuemon.Extensions.Xml.dll
Source
src/Cuemon.Extensions.Xml/StreamExtensions.cs

CopyXmlStream(Stream, Action<XmlWriterSettings>)

Copies the entire XML Stream following the output format of setup.

public static Stream CopyXmlStream(this Stream value, Action<XmlWriterSettings> setup = null)

Parameters

value Stream

The XML Stream to extend.

setup Action<XmlWriterSettings>

The XmlWriterSettings which may be configured.

Returns

Stream

A Stream that is equivalent to value following the output format of setup.

Exceptions

ArgumentNullException

value cannot be null.