C# Class Neo4jClient.Serialization.CommonDeserializerMethods

Datei anzeigen Open project: Readify/Neo4jClient Class Usage Examples

Public Methods

Method Description
ApplyPropertyCasing ( DeserializationContext context, PropertyInfo>.Dictionary properties ) : PropertyInfo>.Dictionary
BuildArray ( DeserializationContext context, Type type, Type itemType, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : Array
BuildDictionary ( DeserializationContext context, Type type, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : IDictionary
BuildIEnumerable ( DeserializationContext context, Type type, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : IList
BuildList ( DeserializationContext context, Type type, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : IList
CoerceValue ( DeserializationContext context, PropertyInfo propertyInfo, JToken value, IEnumerable typeMappings, int nestingLevel ) : object
CreateAndMap ( DeserializationContext context, Type type, JToken element, IEnumerable typeMappings, int nestingLevel ) : object
Map ( DeserializationContext context, object targetObject, JToken parentJsonToken, IEnumerable typeMappings, int nestingLevel ) : void
ParseDateTime ( JToken value ) : DateTime?
ParseDateTimeOffset ( JToken value ) : DateTimeOffset?
ReplaceAllDateInstacesWithNeoDates ( string content ) : string
SetPropertyValue ( DeserializationContext context, object targetObject, PropertyInfo propertyInfo, JToken value, IEnumerable typeMappings, int nestingLevel ) : void

Private Methods

Method Description
GetPropertiesForType ( DeserializationContext context, Type objType ) : PropertyInfo>.Dictionary
MutateObject ( DeserializationContext context, JToken value, IEnumerable typeMappings, int nestingLevel, TypeMapping mapping, Type propertyType ) : object
TryJsonConverters ( DeserializationContext context, Type type, JToken element, object &instance ) : bool

Method Details

ApplyPropertyCasing() public static method

public static ApplyPropertyCasing ( DeserializationContext context, PropertyInfo>.Dictionary properties ) : PropertyInfo>.Dictionary
context DeserializationContext
properties PropertyInfo>.Dictionary
return PropertyInfo>.Dictionary

BuildArray() public static method

public static BuildArray ( DeserializationContext context, Type type, Type itemType, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : Array
context DeserializationContext
type System.Type
itemType System.Type
elements JEnumerable
typeMappings IEnumerable
nestingLevel int
return System.Array

BuildDictionary() public static method

public static BuildDictionary ( DeserializationContext context, Type type, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : IDictionary
context DeserializationContext
type System.Type
elements JEnumerable
typeMappings IEnumerable
nestingLevel int
return IDictionary

BuildIEnumerable() public static method

public static BuildIEnumerable ( DeserializationContext context, Type type, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : IList
context DeserializationContext
type System.Type
elements JEnumerable
typeMappings IEnumerable
nestingLevel int
return IList

BuildList() public static method

public static BuildList ( DeserializationContext context, Type type, JEnumerable elements, IEnumerable typeMappings, int nestingLevel ) : IList
context DeserializationContext
type System.Type
elements JEnumerable
typeMappings IEnumerable
nestingLevel int
return IList

CoerceValue() public static method

public static CoerceValue ( DeserializationContext context, PropertyInfo propertyInfo, JToken value, IEnumerable typeMappings, int nestingLevel ) : object
context DeserializationContext
propertyInfo System.Reflection.PropertyInfo
value JToken
typeMappings IEnumerable
nestingLevel int
return object

CreateAndMap() public static method

public static CreateAndMap ( DeserializationContext context, Type type, JToken element, IEnumerable typeMappings, int nestingLevel ) : object
context DeserializationContext
type System.Type
element JToken
typeMappings IEnumerable
nestingLevel int
return object

Map() public static method

public static Map ( DeserializationContext context, object targetObject, JToken parentJsonToken, IEnumerable typeMappings, int nestingLevel ) : void
context DeserializationContext
targetObject object
parentJsonToken JToken
typeMappings IEnumerable
nestingLevel int
return void

ParseDateTime() public static method

public static ParseDateTime ( JToken value ) : DateTime?
value JToken
return DateTime?

ParseDateTimeOffset() public static method

public static ParseDateTimeOffset ( JToken value ) : DateTimeOffset?
value JToken
return DateTimeOffset?

ReplaceAllDateInstacesWithNeoDates() public static method

public static ReplaceAllDateInstacesWithNeoDates ( string content ) : string
content string
return string

SetPropertyValue() public static method

public static SetPropertyValue ( DeserializationContext context, object targetObject, PropertyInfo propertyInfo, JToken value, IEnumerable typeMappings, int nestingLevel ) : void
context DeserializationContext
targetObject object
propertyInfo System.Reflection.PropertyInfo
value JToken
typeMappings IEnumerable
nestingLevel int
return void