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
Afficher le fichier Open project: vc3/ExoWeb

Private Properties

Свойство Type Description
GetJsonReferenceType string
GetPropertyValue object
GetReference object

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CanConvert() public méthode

public CanConvert ( Type objectType ) : bool
objectType System.Type
Résultat bool

GetJsonValueType() public static méthode

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

Infer() public static méthode

public static Infer ( IEnumerable types ) : IEnumerable
types IEnumerable
Résultat IEnumerable

JsonConverter() public méthode

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

ReadJson() public méthode

public ReadJson ( Newtonsoft reader, Type objectType, object value, Newtonsoft serializer ) : object
reader Newtonsoft
objectType System.Type
value object
serializer Newtonsoft
Résultat object

WriteJson() public méthode

public WriteJson ( Newtonsoft writer, object value, Newtonsoft serializer ) : void
writer Newtonsoft
value object
serializer Newtonsoft
Résultat void