C# Class ExoWeb.Serialization.JsonConverter

Supports conversion to JSON of types implementing IJsonConverter or having DataContractAttribute used for enabling WCF serialization.
Inheritance: Newtonsoft.Json.JsonConverter
Mostrar archivo Open project: vc3/ExoWeb

Private Properties

Property Type Description
GetJsonReferenceType string
GetPropertyValue object
GetReference object

Public Methods

Method Description
AddInstrinsicType ( Type serverType, string clientType ) : void

Add additional type mappings to the list of intrinsic type mappings

CanConvert ( Type objectType ) : bool
GetJsonValueType ( Type type ) : string

Gets the javascript type name for the specified .NET type.

Infer ( IEnumerable types ) : IEnumerable
JsonConverter ( Type type, JsonWriter>.Action serialize, object>.Func deserialize ) : System
ReadJson ( Newtonsoft reader, Type objectType, object value, Newtonsoft serializer ) : object
WriteJson ( Newtonsoft writer, object value, Newtonsoft serializer ) : void

Private Methods

Method Description
GetJsonReferenceType ( ModelType type ) : string

Gets the name of the specified ModelType.

GetPropertyValue ( ModelProperty property, IModelPropertySource source ) : object

Gets the serializable value of a ModelProperty.

GetReference ( ModelReferenceProperty property, ModelInstance instance ) : object

Gets the serializable representation of a ModelInstance.

Method Details

AddInstrinsicType() public static method

Add additional type mappings to the list of intrinsic type mappings
public static AddInstrinsicType ( Type serverType, string clientType ) : void
serverType System.Type
clientType string
return void

CanConvert() public method

public CanConvert ( Type objectType ) : bool
objectType System.Type
return bool

GetJsonValueType() public static method

Gets the javascript type name for the specified .NET type.
public static GetJsonValueType ( Type type ) : string
type System.Type
return string

Infer() public static method

public static Infer ( IEnumerable types ) : IEnumerable
types IEnumerable
return IEnumerable

JsonConverter() public method

public JsonConverter ( Type type, JsonWriter>.Action serialize, object>.Func deserialize ) : System
type System.Type
serialize JsonWriter>.Action
deserialize object>.Func
return System

ReadJson() public method

public ReadJson ( Newtonsoft reader, Type objectType, object value, Newtonsoft serializer ) : object
reader Newtonsoft
objectType System.Type
value object
serializer Newtonsoft
return object

WriteJson() public method

public WriteJson ( Newtonsoft writer, object value, Newtonsoft serializer ) : void
writer Newtonsoft
value object
serializer Newtonsoft
return void