Show / Hide Table of Contents

    Class XmlFormatter

    Serializes and deserializes an object in XML format.

    Inheritance
    System.Object
    Formatter<System.IO.Stream>
    XmlFormatter
    Inherited Members
    Formatter<Stream>.Serialize(Object)
    Formatter<Stream>.Deserialize<T>(Stream)
    Namespace: Cuemon.Serialization.Xml.Formatters
    Assembly: Cuemon.Serialization.Xml.dll
    Syntax
    public class XmlFormatter : Formatter<Stream>

    Constructors

    | Improve this Doc

    XmlFormatter()

    Initializes a new instance of the XmlFormatter class.

    Declaration
    public XmlFormatter()
    | Improve this Doc

    XmlFormatter(XmlFormatterOptions)

    Initializes a new instance of the XmlFormatter class.

    Declaration
    public XmlFormatter(XmlFormatterOptions options)
    Parameters
    Type Name Description
    XmlFormatterOptions options

    The configured XmlFormatterOptions.

    | Improve this Doc

    XmlFormatter(Action<XmlFormatterOptions>)

    Initializes a new instance of the XmlFormatter class.

    Declaration
    public XmlFormatter(Action<XmlFormatterOptions> setup)
    Parameters
    Type Name Description
    System.Action<XmlFormatterOptions> setup

    The XmlFormatterOptions which need to be configured.

    Properties

    | Improve this Doc

    Options

    Gets the configured options of this XmlFormatter.

    Declaration
    protected XmlFormatterOptions Options { get; }
    Property Value
    Type Description
    XmlFormatterOptions

    The configured options of this XmlFormatter.

    Methods

    | Improve this Doc

    Deserialize(Stream, Type)

    Deserializes the specified value into an object of objectType.

    Declaration
    public override object Deserialize(Stream value, Type objectType)
    Parameters
    Type Name Description
    System.IO.Stream value

    The stream from which to deserialize the object graph.

    System.Type objectType

    The type of the deserialized object.

    Returns
    Type Description
    System.Object

    An object of objectType.

    Overrides
    Cuemon.Serialization.Formatters.Formatter<System.IO.Stream>.Deserialize(System.IO.Stream, System.Type)
    | Improve this Doc

    Serialize(Object, Type)

    Serializes the specified source to an object of System.IO.Stream.

    Declaration
    public override Stream Serialize(object source, Type objectType)
    Parameters
    Type Name Description
    System.Object source

    The object to serialize to XML format.

    System.Type objectType

    The type of the object to serialize.

    Returns
    Type Description
    System.IO.Stream

    A stream of the serialized source.

    Overrides
    Cuemon.Serialization.Formatters.Formatter<System.IO.Stream>.Serialize(System.Object, System.Type)

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)

    See Also

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