Table of Contents

Class XmlStreamFactory

Namespace
Cuemon.Xml
Assembly
Cuemon.Xml.dll

Provides access to factory methods for creating and configuring System.IO.Stream instances.

public static class XmlStreamFactory
Inheritance
Object
XmlStreamFactory

Methods

CreateStream(Action<XmlWriter>, Action<XmlWriterSettings>)

Creates and returns an XML stream by the specified delegate writer.

public static Stream CreateStream(Action<XmlWriter> writer, Action<XmlWriterSettings> setup = null)

Parameters

writer Action<XmlWriter>

The delegate that will create an in-memory XML stream.

setup Action<XmlWriterSettings>

The System.Xml.XmlWriterSettings which may be configured.

Returns

Stream

A System.IO.Stream holding the XML created by the delegate writer.