Class DynamicJsonConverter
Provides a factory based way to create and wrap an
Inheritance
Namespace: Cuemon.Serialization.Json
Assembly: Cuemon.Serialization.Json.dll
Syntax
public static class DynamicJsonConverter : object
Properties
| Improve this DocUseCamelCase
Gets a value indicating whether implementations of
Declaration
public static bool UseCamelCase { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this DocCreate(Type, Action<JsonWriter, Object>, Func<JsonReader, Type, Object>)
Creates a dynamic instance of an writer
and 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 |
Func<JsonReader, Type, System.Object> | reader | The delegate that generates |
Returns
Type | Description |
---|---|
JsonConverter | An |
Create<T>(Action<JsonWriter, T>, Func<JsonReader, Type, T>)
Creates a dynamic instance of an writer
and 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 |
Func<JsonReader, Type, T> | reader | The delegate that generates |
Returns
Type | Description |
---|---|
JsonConverter | An |
Type Parameters
Name | Description |
---|---|
T | The type to implement an |