C# Класс Hyper.Http.Serialization.HyperJsonConverter

HyperJsonConverter class.
Наследование: System.Web.Script.Serialization.JavaScriptConverter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Deserialize() публичный Метод

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.
Результат object

HyperJsonConverter() публичный Метод

Initializes a new instance of the HyperJsonConverter class.
public HyperJsonConverter ( IEnumerable supportedTypes ) : System
supportedTypes IEnumerable The supported types.
Результат System

Serialize() публичный Метод

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.
Результат object>.IDictionary