Show / Hide Table of Contents

    Class DynamicJsonConverter

    Provides a factory based way to create and wrap an implementation.

    Inheritance
    System.Object
    DynamicJsonConverter
    Namespace: Cuemon.Serialization.Json
    Assembly: Cuemon.Serialization.Json.dll
    Syntax
    public static class DynamicJsonConverter : object

    Properties

    | Improve this Doc

    UseCamelCase

    Gets a value indicating whether implementations of should use camelCase casing for property names.

    Declaration
    public static bool UseCamelCase { get; }
    Property Value
    Type Description
    System.Boolean

    true if implementations of should use camelCase casing for property names; otherwise, false.

    Methods

    | Improve this Doc

    Create(Type, Action<JsonWriter, Object>, Func<JsonReader, Type, Object>)

    Creates a dynamic instance of an implementation wrapping through writer and through reader.

    Declaration
    public static JsonConverter Create(Type objectType, Action<JsonWriter, object> writer = null, Func<JsonReader, Type, object> reader = null)
    Parameters
    Type Name Description
    Type objectType

    The type of the object to convert.

    Action<JsonWriter, System.Object> writer

    The delegate that converts objectType to its JSON representation.

    Func<JsonReader, Type, System.Object> reader

    The delegate that generates objectType from its JSON representation.

    Returns
    Type Description
    JsonConverter

    An implementation of objectType.

    | Improve this Doc

    Create<T>(Action<JsonWriter, T>, Func<JsonReader, Type, T>)

    Creates a dynamic instance of an implementation wrapping through writer and through reader.

    Declaration
    public static JsonConverter Create<T>(Action<JsonWriter, T> writer = null, Func<JsonReader, Type, T> reader = null)
    Parameters
    Type Name Description
    Action<JsonWriter, T> writer

    The delegate that converts T to its JSON representation.

    Func<JsonReader, Type, T> reader

    The delegate that generates T from its JSON representation.

    Returns
    Type Description
    JsonConverter

    An implementation of T.

    Type Parameters
    Name Description
    T

    The type to implement an .

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