Class XmlWriterUtility
This utility class is designed to make System.Xml.XmlWriter related operations easier to work with.
Inheritance
Namespace: Cuemon.Xml
Assembly: Cuemon.Xml.dll
Syntax
public static class XmlWriterUtility
Methods
| Improve this DocCopy(XmlReader, Action<XmlCopyOptions>)
Copies everything from the specified reader
and returns the result as an XML stream.
Declaration
public static Stream Copy(XmlReader reader, Action<XmlCopyOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data. |
System.Action<XmlCopyOptions> | setup | The XmlCopyOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding an exact copy of the source |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Copy(XmlReader, Action<XmlWriter, XmlReader>, Action<XmlCopyOptions>)
Copies the specified reader
using the specified delegate copier
and returns the result as an XML stream.
Declaration
public static Stream Copy(XmlReader reader, Action<XmlWriter, XmlReader> copier, Action<XmlCopyOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data. |
System.Action<System.Xml.XmlWriter, System.Xml.XmlReader> | copier | The delegate that will create an in-memory copy of |
System.Action<XmlCopyOptions> | setup | The XmlCopyOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML copied by the delegate |
Remarks
This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Copy<T>(XmlReader, Action<XmlWriter, XmlReader, T>, T, Action<XmlCopyOptions>)
Copies the specified reader
using the specified delegate copier
and returns the result as an XML stream.
Declaration
public static Stream Copy<T>(XmlReader reader, Action<XmlWriter, XmlReader, T> copier, T arg, Action<XmlCopyOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data. |
System.Action<System.Xml.XmlWriter, System.Xml.XmlReader, T> | copier | The delegate that will create an in-memory copy of |
T | arg | The parameter of the delegate |
System.Action<XmlCopyOptions> | setup | The XmlCopyOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML copied by the delegate |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the delegate |
Remarks
This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Copy<T1, T2>(XmlReader, Action<XmlWriter, XmlReader, T1, T2>, T1, T2, Action<XmlCopyOptions>)
Copies the specified reader
using the specified delegate copier
and returns the result as an XML stream.
Declaration
public static Stream Copy<T1, T2>(XmlReader reader, Action<XmlWriter, XmlReader, T1, T2> copier, T1 arg1, T2 arg2, Action<XmlCopyOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data. |
System.Action<System.Xml.XmlWriter, System.Xml.XmlReader, T1, T2> | copier | The delegate that will create an in-memory copy of |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
System.Action<XmlCopyOptions> | setup | The XmlCopyOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML copied by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Remarks
This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Copy<T1, T2, T3>(XmlReader, Action<XmlWriter, XmlReader, T1, T2, T3>, T1, T2, T3, Action<XmlCopyOptions>)
Copies the specified reader
using the specified delegate copier
and returns the result as an XML stream.
Declaration
public static Stream Copy<T1, T2, T3>(XmlReader reader, Action<XmlWriter, XmlReader, T1, T2, T3> copier, T1 arg1, T2 arg2, T3 arg3, Action<XmlCopyOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data. |
System.Action<System.Xml.XmlWriter, System.Xml.XmlReader, T1, T2, T3> | copier | The delegate that will create an in-memory copy of |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
System.Action<XmlCopyOptions> | setup | The XmlCopyOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML copied by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Remarks
This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Copy<T1, T2, T3, T4>(XmlReader, Action<XmlWriter, XmlReader, T1, T2, T3, T4>, T1, T2, T3, T4, Action<XmlCopyOptions>)
Copies the specified reader
using the specified delegate copier
and returns the result as an XML stream.
Declaration
public static Stream Copy<T1, T2, T3, T4>(XmlReader reader, Action<XmlWriter, XmlReader, T1, T2, T3, T4> copier, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<XmlCopyOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data. |
System.Action<System.Xml.XmlWriter, System.Xml.XmlReader, T1, T2, T3, T4> | copier | The delegate that will create an in-memory copy of |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
System.Action<XmlCopyOptions> | setup | The XmlCopyOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML copied by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Remarks
This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Copy<T1, T2, T3, T4, T5>(XmlReader, Action<XmlWriter, XmlReader, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5, Action<XmlCopyOptions>)
Copies the specified reader
using the specified delegate copier
and returns the result as an XML stream.
Declaration
public static Stream Copy<T1, T2, T3, T4, T5>(XmlReader reader, Action<XmlWriter, XmlReader, T1, T2, T3, T4, T5> copier, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<XmlCopyOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data. |
System.Action<System.Xml.XmlWriter, System.Xml.XmlReader, T1, T2, T3, T4, T5> | copier | The delegate that will create an in-memory copy of |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
System.Action<XmlCopyOptions> | setup | The XmlCopyOptions which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML copied by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Remarks
This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
CreateSettings(Action<XmlWriterSettings>)
Specifies a set of features to support the System.Xml.XmlWriter object.
Declaration
public static XmlWriterSettings CreateSettings(Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriterSettings> | setup |
Returns
Type | Description |
---|---|
System.Xml.XmlWriterSettings | A System.Xml.XmlWriterSettings instance that specifies a set of features to support the System.Xml.XmlWriter object. |
Remarks
The following table shows the overridden initial property values for an instance of System.Xml.XmlWriterSettings.
The initial property values can be viewed here: https://msdn.microsoft.com/EN-US/library/536k980t(v=VS.110,d=hv.2).aspx
Property | Initial Value |
---|---|
System.Xml.XmlWriterSettings.IndentChars | Tab |
CreateXml(Action<XmlWriter>, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml(Action<XmlWriter> writer, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter> | writer | The delegate that will create an in-memory XML stream. |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
CreateXml<T>(Action<XmlWriter, T>, T, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T>(Action<XmlWriter, T> writer, T arg, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T> | writer | The delegate that will create an in-memory XML stream. |
T | arg | The parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter of the delegate |
CreateXml<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
CreateXml<T1, T2>(Action<XmlWriter, T1, T2>, T1, T2, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2>(Action<XmlWriter, T1, T2> writer, T1 arg1, T2 arg2, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
CreateXml<T1, T2, T3>(Action<XmlWriter, T1, T2, T3>, T1, T2, T3, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3>(Action<XmlWriter, T1, T2, T3> writer, T1 arg1, T2 arg2, T3 arg3, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
CreateXml<T1, T2, T3, T4>(Action<XmlWriter, T1, T2, T3, T4>, T1, T2, T3, T4, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3, T4>(Action<XmlWriter, T1, T2, T3, T4> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3, T4> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
CreateXml<T1, T2, T3, T4, T5>(Action<XmlWriter, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3, T4, T5>(Action<XmlWriter, T1, T2, T3, T4, T5> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3, T4, T5> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
CreateXml<T1, T2, T3, T4, T5, T6>(Action<XmlWriter, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3, T4, T5, T6>(Action<XmlWriter, T1, T2, T3, T4, T5, T6> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3, T4, T5, T6> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
CreateXml<T1, T2, T3, T4, T5, T6, T7>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3, T4, T5, T6, T7>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3, T4, T5, T6, T7> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
CreateXml<T1, T2, T3, T4, T5, T6, T7, T8>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3, T4, T5, T6, T7, T8>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
CreateXml<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9, Action<XmlWriterSettings>)
Creates and returns a XML stream by the specified delegate writer
.
Declaration
public static Stream CreateXml<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8, T9> writer, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Xml.XmlWriter, T1, T2, T3, T4, T5, T6, T7, T8, T9> | writer | The delegate that will create an in-memory XML stream. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream holding the XML created by the delegate |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |