C# Class Hyper.Http.Serialization.HyperJsonConverter

HyperJsonConverter class.
Inheritance: System.Web.Script.Serialization.JavaScriptConverter
ファイルを表示 Open project: tmitchel2/Hyper Class Usage Examples

Public Methods

Method Description
Deserialize ( object>.IDictionary dictionary, Type type, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : object

Deserializes the specified dictionary.

HyperJsonConverter ( IEnumerable supportedTypes ) : System

Initializes a new instance of the HyperJsonConverter class.

Serialize ( object obj, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : object>.IDictionary

When overridden in a derived class, builds a dictionary of name/value pairs.

Private Methods

Method Description
CustomDeserialize ( Type type, object data, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : object

Customs the deserialize.

CustomSerialize ( object obj ) : object

Customs the serialize.

GetDefaultValue ( Type type ) : object

Gets the default value.

GetLinkName ( PropertyInfo prop ) : string

Gets the name of the link.

GetLinkValue ( PropertyInfo prop, object obj, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : object

Gets the link value.

GetMemberName ( PropertyInfo prop ) : string

Gets the name of the member.

GetMemberValue ( PropertyInfo prop, object obj ) : object

Gets the member value.

IsLink ( PropertyInfo prop ) : bool

Determines whether the specified prop is link.

IsLinkSerialised ( PropertyInfo prop, object obj ) : bool

Determines whether [is links serialised] [the specified prop].

IsMember ( PropertyInfo prop ) : bool

Determines whether the specified prop is member.

IsMemberSerialised ( PropertyInfo prop, object obj ) : bool

Determines whether [is member serialised] [the specified prop].

SetLinkValue ( object obj, PropertyInfo prop, object value, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : void

Sets the link value.

SetMemberValue ( object obj, PropertyInfo prop, object value, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : void

Sets the member value.

Method Details

Deserialize() public method

Deserializes the specified dictionary.
public Deserialize ( object>.IDictionary dictionary, Type type, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : object
dictionary object>.IDictionary The dictionary.
type System.Type The type.
serializer System.Web.Script.Serialization.JavaScriptSerializer The serializer.
return object

HyperJsonConverter() public method

Initializes a new instance of the HyperJsonConverter class.
public HyperJsonConverter ( IEnumerable supportedTypes ) : System
supportedTypes IEnumerable The supported types.
return System

Serialize() public method

When overridden in a derived class, builds a dictionary of name/value pairs.
public Serialize ( object obj, System.Web.Script.Serialization.JavaScriptSerializer serializer ) : object>.IDictionary
obj object The object to serialize.
serializer System.Web.Script.Serialization.JavaScriptSerializer The object that is responsible for the serialization.
return object>.IDictionary