Show / Hide Table of Contents

    Class XmlWriterUtility

    This utility class is designed to make System.Xml.XmlWriter related operations easier to work with.

    Inheritance
    System.Object
    XmlWriterUtility
    Namespace: Cuemon.Xml
    Assembly: Cuemon.Xml.dll
    Syntax
    public static class XmlWriterUtility

    Methods

    | Improve this Doc

    Copy(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 reader.

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null.

    | Improve this Doc

    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 reader as a XML stream.

    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 copier from the source reader.

    Remarks

    This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null - or - copier is null.

    | Improve this Doc

    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 reader as a XML stream.

    T arg

    The parameter of the delegate copier.

    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 copier from the source reader.

    Type Parameters
    Name Description
    T

    The type of the parameter of the delegate copier.

    Remarks

    This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null - or - copier is null.

    | Improve this Doc

    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 reader as a XML stream.

    T1 arg1

    The first parameter of the delegate copier.

    T2 arg2

    The second parameter of the delegate copier.

    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 copier from the source reader.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate copier.

    T2

    The type of the second parameter of the delegate copier.

    Remarks

    This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null - or - copier is null.

    | Improve this Doc

    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 reader as a XML stream.

    T1 arg1

    The first parameter of the delegate copier.

    T2 arg2

    The second parameter of the delegate copier.

    T3 arg3

    The third parameter of the delegate copier.

    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 copier from the source reader.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate copier.

    T2

    The type of the second parameter of the delegate copier.

    T3

    The type of the third parameter of the delegate copier.

    Remarks

    This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null - or - copier is null.

    | Improve this Doc

    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 reader as a XML stream.

    T1 arg1

    The first parameter of the delegate copier.

    T2 arg2

    The second parameter of the delegate copier.

    T3 arg3

    The third parameter of the delegate copier.

    T4 arg4

    The fourth parameter of the delegate copier.

    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 copier from the source reader.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate copier.

    T2

    The type of the second parameter of the delegate copier.

    T3

    The type of the third parameter of the delegate copier.

    T4

    The type of the fourth parameter of the delegate copier.

    Remarks

    This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null - or - copier is null.

    | Improve this Doc

    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 reader as a XML stream.

    T1 arg1

    The first parameter of the delegate copier.

    T2 arg2

    The second parameter of the delegate copier.

    T3 arg3

    The third parameter of the delegate copier.

    T4 arg4

    The fourth parameter of the delegate copier.

    T5 arg5

    The fifth parameter of the delegate copier.

    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 copier from the source reader.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate copier.

    T2

    The type of the second parameter of the delegate copier.

    T3

    The type of the third parameter of the delegate copier.

    T4

    The type of the fourth parameter of the delegate copier.

    T5

    The type of the fifth parameter of the delegate copier.

    Remarks

    This method uses a default implementation of System.Xml.XmlWriterSettings as specified by CreateSettings(Action<XmlWriterSettings>).

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null - or - copier is null.

    | Improve this Doc

    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

    PropertyInitial Value
    System.Xml.XmlWriterSettings.IndentCharsTab
    | Improve this Doc

    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 writer.

    | Improve this Doc

    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 writer.

    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 writer.

    Type Parameters
    Name Description
    T

    The type of the parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    T4 arg4

    The fourth parameter of the delegate writer.

    T5 arg5

    The fifth parameter of the delegate writer.

    T6 arg6

    The sixth parameter of the delegate writer.

    T7 arg7

    The seventh parameter of the delegate writer.

    T8 arg8

    The eighth parameter of the delegate writer.

    T9 arg9

    The ninth parameter of the delegate writer.

    T10 arg10

    The tenth parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    T4

    The type of the fourth parameter of the delegate writer.

    T5

    The type of the fifth parameter of the delegate writer.

    T6

    The type of the sixth parameter of the delegate writer.

    T7

    The type of the seventh parameter of the delegate writer.

    T8

    The type of the eighth parameter of the delegate writer.

    T9

    The type of the ninth parameter of the delegate writer.

    T10

    The type of the tenth parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    T4 arg4

    The fourth parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    T4

    The type of the fourth parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    T4 arg4

    The fourth parameter of the delegate writer.

    T5 arg5

    The fifth parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    T4

    The type of the fourth parameter of the delegate writer.

    T5

    The type of the fifth parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    T4 arg4

    The fourth parameter of the delegate writer.

    T5 arg5

    The fifth parameter of the delegate writer.

    T6 arg6

    The sixth parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    T4

    The type of the fourth parameter of the delegate writer.

    T5

    The type of the fifth parameter of the delegate writer.

    T6

    The type of the sixth parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    T4 arg4

    The fourth parameter of the delegate writer.

    T5 arg5

    The fifth parameter of the delegate writer.

    T6 arg6

    The sixth parameter of the delegate writer.

    T7 arg7

    The seventh parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    T4

    The type of the fourth parameter of the delegate writer.

    T5

    The type of the fifth parameter of the delegate writer.

    T6

    The type of the sixth parameter of the delegate writer.

    T7

    The type of the seventh parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    T4 arg4

    The fourth parameter of the delegate writer.

    T5 arg5

    The fifth parameter of the delegate writer.

    T6 arg6

    The sixth parameter of the delegate writer.

    T7 arg7

    The seventh parameter of the delegate writer.

    T8 arg8

    The eighth parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    T4

    The type of the fourth parameter of the delegate writer.

    T5

    The type of the fifth parameter of the delegate writer.

    T6

    The type of the sixth parameter of the delegate writer.

    T7

    The type of the seventh parameter of the delegate writer.

    T8

    The type of the eighth parameter of the delegate writer.

    | Improve this Doc

    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 writer.

    T2 arg2

    The second parameter of the delegate writer.

    T3 arg3

    The third parameter of the delegate writer.

    T4 arg4

    The fourth parameter of the delegate writer.

    T5 arg5

    The fifth parameter of the delegate writer.

    T6 arg6

    The sixth parameter of the delegate writer.

    T7 arg7

    The seventh parameter of the delegate writer.

    T8 arg8

    The eighth parameter of the delegate writer.

    T9 arg9

    The ninth parameter of the delegate writer.

    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 writer.

    Type Parameters
    Name Description
    T1

    The type of the first parameter of the delegate writer.

    T2

    The type of the second parameter of the delegate writer.

    T3

    The type of the third parameter of the delegate writer.

    T4

    The type of the fourth parameter of the delegate writer.

    T5

    The type of the fifth parameter of the delegate writer.

    T6

    The type of the sixth parameter of the delegate writer.

    T7

    The type of the seventh parameter of the delegate writer.

    T8

    The type of the eighth parameter of the delegate writer.

    T9

    The type of the ninth parameter of the delegate writer.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX