Show / Hide Table of Contents

    Class FormatterExtensions

    Extension methods for Formatter<TFormat> related operations.

    Inheritance
    System.Object
    FormatterExtensions
    Namespace: Cuemon.Serialization.Formatters
    Assembly: Cuemon.Serialization.dll
    Syntax
    public static class FormatterExtensions

    Methods

    | Improve this Doc

    UseCollection(IHierarchy<DataPair>, Type)

    A formatter implementation that resolves a System.Collections.ICollection.

    Declaration
    public static ICollection UseCollection(this IHierarchy<DataPair> hierarchy, Type valueType)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    System.Type valueType

    The type of the objects in the collection.

    Returns
    Type Description
    System.Collections.ICollection

    A System.Collections.ICollection of valueType from the specified hierarchy.

    | Improve this Doc

    UseConvertibleFormatter(IHierarchy<DataPair>)

    A formatter implementation that resolves a System.IConvertible.

    Declaration
    public static IConvertible UseConvertibleFormatter(this IHierarchy<DataPair> hierarchy)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    Returns
    Type Description
    System.IConvertible

    A System.IConvertible from the specified hierarchy.

    | Improve this Doc

    UseDateTimeFormatter(IHierarchy<DataPair>)

    A formatter implementation that resolves a System.DateTime.

    Declaration
    public static DateTime UseDateTimeFormatter(this IHierarchy<DataPair> hierarchy)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    Returns
    Type Description
    System.DateTime

    A System.DateTime from the specified hierarchy.

    | Improve this Doc

    UseDecimalFormatter(IHierarchy<DataPair>)

    A formatter implementation that resolves a System.Decimal.

    Declaration
    public static decimal UseDecimalFormatter(this IHierarchy<DataPair> hierarchy)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    Returns
    Type Description
    System.Decimal

    A System.Decimal from the specified hierarchy.

    | Improve this Doc

    UseDictionary(IHierarchy<DataPair>, Type[])

    A formatter implementation that resolves a System.Collections.IDictionary.

    Declaration
    public static IDictionary UseDictionary(this IHierarchy<DataPair> hierarchy, Type[] valueTypes)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    System.Type[] valueTypes

    The value types that forms a System.Collections.Generic.KeyValuePair<TKey,TValue>.

    Returns
    Type Description
    System.Collections.IDictionary

    A System.Collections.IDictionary with System.Collections.Generic.KeyValuePair<TKey,TValue> of valueTypes from the specified hierarchy.

    | Improve this Doc

    UseGuidFormatter(IHierarchy<DataPair>)

    A formatter implementation that resolves a System.Guid.

    Declaration
    public static Guid UseGuidFormatter(this IHierarchy<DataPair> hierarchy)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    Returns
    Type Description
    System.Guid

    A System.Guid from the specified hierarchy.

    | Improve this Doc

    UseStringFormatter(IHierarchy<DataPair>)

    A formatter implementation that resolves a System.String.

    Declaration
    public static string UseStringFormatter(this IHierarchy<DataPair> hierarchy)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    Returns
    Type Description
    System.String

    A System.String from the specified hierarchy.

    | Improve this Doc

    UseTimeSpanFormatter(IHierarchy<DataPair>)

    A formatter implementation that resolves a System.TimeSpan.

    Declaration
    public static TimeSpan UseTimeSpanFormatter(this IHierarchy<DataPair> hierarchy)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    Returns
    Type Description
    System.TimeSpan

    A System.TimeSpan from the specified hierarchy.

    | Improve this Doc

    UseUriFormatter(IHierarchy<DataPair>)

    A formatter implementation that resolves a System.Uri.

    Declaration
    public static Uri UseUriFormatter(this IHierarchy<DataPair> hierarchy)
    Parameters
    Type Name Description
    IHierarchy<DataPair> hierarchy

    The hierarchy to parse.

    Returns
    Type Description
    System.Uri

    A System.Uri from the specified hierarchy.

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