Show / Hide Table of Contents

    Class Formatter<TFormat>

    An abstract class that supports serialization and deserialization of an object, in a given format.

    Inheritance
    System.Object
    Formatter<TFormat>
    XmlFormatter
    Namespace: Cuemon.Serialization.Formatters
    Assembly: Cuemon.Serialization.dll
    Syntax
    public abstract class Formatter<TFormat>
    Type Parameters
    Name Description
    TFormat

    The type of format which serialization and deserialization is invoked.

    Constructors

    | Improve this Doc

    Formatter()

    Initializes a new instance of the Formatter<TFormat> class.

    Declaration
    protected Formatter()

    Methods

    | Improve this Doc

    Deserialize(TFormat, Type)

    Deserializes the specified value of TFormat into an object of objectType.

    Declaration
    public abstract object Deserialize(TFormat value, Type objectType)
    Parameters
    Type Name Description
    TFormat value

    The object 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.

    | Improve this Doc

    Deserialize<T>(TFormat)

    Deserializes the specified value of TFormat into an object of T.

    Declaration
    public T Deserialize<T>(TFormat value)
    Parameters
    Type Name Description
    TFormat value

    The object from which to deserialize the object graph.

    Returns
    Type Description
    T

    An object of T.

    Type Parameters
    Name Description
    T

    The type of the object to return.

    | Improve this Doc

    Serialize(Object)

    Serializes the specified source to an object of TFormat.

    Declaration
    public TFormat Serialize(object source)
    Parameters
    Type Name Description
    System.Object source

    The object to serialize to a given format.

    Returns
    Type Description
    TFormat

    An object of the serialized source.

    | Improve this Doc

    Serialize(Object, Type)

    Serializes the object of this instance to an object of TFormat.

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

    The object to serialize to a given format.

    System.Type objectType

    The type of the object to serialize.

    Returns
    Type Description
    TFormat

    An object of the serialized source.

    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>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX