Class JsonSerializerReader
Inheritance
System.Object
JsonSerializerReader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Bayat.Json.Runtime.dll
Syntax
public class JsonSerializerReader : JsonSerializerInternalBase
Constructors
|
Improve this Doc
View Source
JsonSerializerReader(JsonSerializer)
Declaration
public JsonSerializerReader(JsonSerializer serializer)
Parameters
Methods
|
Improve this Doc
View Source
CheckPropertyName(JsonReader, String)
Declaration
public bool CheckPropertyName(JsonReader reader, string memberName)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.String |
memberName |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CreateISerializableItem(JToken, Type, JsonISerializableContract, JsonProperty)
Declaration
public object CreateISerializableItem(JToken token, Type type, JsonISerializableContract contract, JsonProperty member)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
CreateNewObject(JsonReader, JsonObjectContract, JsonProperty, JsonProperty, String, String, out Boolean)
Declaration
public object CreateNewObject(JsonReader reader, JsonObjectContract objectContract, JsonProperty containerMember, JsonProperty containerProperty, string id, string unityGuid, out bool createdFromNonDefaultCreator)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Deserialize(JsonReader, Type, Boolean)
Declaration
public object Deserialize(JsonReader reader, Type objectType, bool checkAdditionalContent)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.Type |
objectType |
|
System.Boolean |
checkAdditionalContent |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
Deserialize<T>(JsonReader)
Declaration
public T Deserialize<T>(JsonReader reader)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
DeserializeInto(JsonReader, Object)
Declaration
public object DeserializeInto(JsonReader reader, object existingValue)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.Object |
existingValue |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
DeserializeInto(JsonReader, Type, Object, Boolean)
Declaration
public object DeserializeInto(JsonReader reader, Type objectType, object existingValue, bool checkAdditionalContent)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.Type |
objectType |
|
System.Object |
existingValue |
|
System.Boolean |
checkAdditionalContent |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
DeserializeIntoProperty(JsonReader, Object)
Declaration
public object DeserializeIntoProperty(JsonReader reader, object existingValue)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.Object |
existingValue |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
DeserializeProperty(JsonReader, Type)
Declaration
public object DeserializeProperty(JsonReader reader, Type objectType)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.Type |
objectType |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
DeserializeProperty<T>(JsonReader)
Declaration
public T DeserializeProperty<T>(JsonReader reader)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
EndProcessProperty(Object, JsonReader, JsonObjectContract, Int32, JsonProperty, JsonSerializerReader.PropertyPresence, Boolean)
Declaration
public void EndProcessProperty(object newObject, JsonReader reader, JsonObjectContract contract, int initialDepth, JsonProperty property, JsonSerializerReader.PropertyPresence presence, bool setDefaultValue)
Parameters
|
Improve this Doc
View Source
GetConverter(JsonContract, JsonConverter, JsonContainerContract, JsonProperty)
Declaration
public JsonConverter GetConverter(JsonContract contract, JsonConverter memberConverter, JsonContainerContract containerContract, JsonProperty containerProperty)
Parameters
Returns
|
Improve this Doc
View Source
GetExpectedDescription(JsonContract)
Declaration
public string GetExpectedDescription(JsonContract contract)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
HandleError(JsonReader, Boolean, Int32)
Declaration
public void HandleError(JsonReader reader, bool readPastError, int initialDepth)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.Boolean |
readPastError |
|
System.Int32 |
initialDepth |
|
|
Improve this Doc
View Source
HasFlag(DefaultValueHandling, DefaultValueHandling)
Declaration
public bool HasFlag(DefaultValueHandling value, DefaultValueHandling flag)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Populate(JsonReader, Object)
Declaration
public void Populate(JsonReader reader, object target)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
System.Object |
target |
|
|
Improve this Doc
View Source
PopulateObject(Object, JsonReader, JsonObjectContract, JsonProperty, String)
Declaration
public object PopulateObject(object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, string id)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
PopulateObjectProperty(Object, JsonReader, JsonProperty, String, JsonObjectContract)
Declaration
public object PopulateObjectProperty(object newObject, JsonReader reader, JsonProperty member, string memberName, JsonObjectContract contract)
Parameters
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
ReadForType(JsonReader, JsonContract, Boolean)
Declaration
public bool ReadForType(JsonReader reader, JsonContract contract, bool hasConverter)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ResolveTypeName(JsonReader, ref Type, ref JsonContract, JsonProperty, JsonContainerContract, JsonProperty, String)
Declaration
public void ResolveTypeName(JsonReader reader, ref Type objectType, ref JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, string qualifiedTypeName)
Parameters
|
Improve this Doc
View Source
SetExtensionData(JsonObjectContract, JsonProperty, JsonReader, String, Object)
Declaration
public void SetExtensionData(JsonObjectContract contract, JsonProperty member, JsonReader reader, string memberName, object o)
Parameters
|
Improve this Doc
View Source
SetPropertyPresence(JsonReader, JsonProperty, Dictionary<JsonProperty, JsonSerializerReader.PropertyPresence>)
Declaration
public void SetPropertyPresence(JsonReader reader, JsonProperty property, Dictionary<JsonProperty, JsonSerializerReader.PropertyPresence> requiredProperties)
Parameters
|
Improve this Doc
View Source
SetPropertyValue(JsonProperty, JsonConverter, JsonContainerContract, JsonProperty, JsonReader, Object)
Declaration
public bool SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, object target)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ShouldDeserialize(JsonReader, JsonProperty, Object)
Declaration
public bool ShouldDeserialize(JsonReader reader, JsonProperty property, object target)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ThrowUnexpectedEndException(JsonReader, JsonContract, Object, String)
Declaration
public void ThrowUnexpectedEndException(JsonReader reader, JsonContract contract, object currentObject, string message)
Parameters
Type |
Name |
Description |
JsonReader |
reader |
|
JsonContract |
contract |
|
System.Object |
currentObject |
|
System.String |
message |
|