C# Class System.Runtime.Serialization.Json.JsonDataContract

Mostra file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
GetReadWriteDelegatesFromGeneratedAssembly JsonReadWriteDelegates
TryGetReadWriteDelegatesFromGeneratedAssembly JsonReadWriteDelegates

Public Methods

Method Description
GetGeneratedReadWriteDelegates ( System.Runtime.Serialization.DataContract c ) : JsonReadWriteDelegates
GetJsonDataContract ( System.Runtime.Serialization.DataContract traditionalDataContract ) : JsonDataContract
ReadJsonValue ( System.Runtime.Serialization.XmlReaderDelegator jsonReader, System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson context ) : object
ReadJsonValueCore ( System.Runtime.Serialization.XmlReaderDelegator jsonReader, System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson context ) : object
WriteJsonValue ( System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle ) : void
WriteJsonValueCore ( System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle ) : void

Protected Methods

Method Description
HandleReadValue ( object obj, XmlObjectSerializerReadContext context ) : object
JsonDataContract ( System.Runtime.Serialization.DataContract traditionalDataContract ) : System.Collections.Generic
JsonDataContract ( JsonDataContractCriticalHelper helper ) : System.Collections.Generic
PopKnownDataContracts ( System.Runtime.Serialization.XmlObjectSerializerContext context ) : void
PushKnownDataContracts ( System.Runtime.Serialization.XmlObjectSerializerContext context ) : void
TryReadNullAtTopLevel ( System.Runtime.Serialization.XmlReaderDelegator reader ) : bool

Private Methods

Method Description
GetReadWriteDelegatesFromGeneratedAssembly ( System.Runtime.Serialization.DataContract c ) : JsonReadWriteDelegates
TryGetReadWriteDelegatesFromGeneratedAssembly ( System.Runtime.Serialization.DataContract c ) : JsonReadWriteDelegates

Method Details

GetGeneratedReadWriteDelegates() public static method

public static GetGeneratedReadWriteDelegates ( System.Runtime.Serialization.DataContract c ) : JsonReadWriteDelegates
c System.Runtime.Serialization.DataContract
return JsonReadWriteDelegates

GetJsonDataContract() public static method

public static GetJsonDataContract ( System.Runtime.Serialization.DataContract traditionalDataContract ) : JsonDataContract
traditionalDataContract System.Runtime.Serialization.DataContract
return JsonDataContract

HandleReadValue() protected static method

protected static HandleReadValue ( object obj, XmlObjectSerializerReadContext context ) : object
obj object
context XmlObjectSerializerReadContext
return object

JsonDataContract() protected method

protected JsonDataContract ( System.Runtime.Serialization.DataContract traditionalDataContract ) : System.Collections.Generic
traditionalDataContract System.Runtime.Serialization.DataContract
return System.Collections.Generic

JsonDataContract() protected method

protected JsonDataContract ( JsonDataContractCriticalHelper helper ) : System.Collections.Generic
helper JsonDataContractCriticalHelper
return System.Collections.Generic

PopKnownDataContracts() protected method

protected PopKnownDataContracts ( System.Runtime.Serialization.XmlObjectSerializerContext context ) : void
context System.Runtime.Serialization.XmlObjectSerializerContext
return void

PushKnownDataContracts() protected method

protected PushKnownDataContracts ( System.Runtime.Serialization.XmlObjectSerializerContext context ) : void
context System.Runtime.Serialization.XmlObjectSerializerContext
return void

ReadJsonValue() public method

public ReadJsonValue ( System.Runtime.Serialization.XmlReaderDelegator jsonReader, System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson context ) : object
jsonReader System.Runtime.Serialization.XmlReaderDelegator
context System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson
return object

ReadJsonValueCore() public method

public ReadJsonValueCore ( System.Runtime.Serialization.XmlReaderDelegator jsonReader, System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson context ) : object
jsonReader System.Runtime.Serialization.XmlReaderDelegator
context System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson
return object

TryReadNullAtTopLevel() protected static method

protected static TryReadNullAtTopLevel ( System.Runtime.Serialization.XmlReaderDelegator reader ) : bool
reader System.Runtime.Serialization.XmlReaderDelegator
return bool

WriteJsonValue() public method

public WriteJsonValue ( System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle ) : void
jsonWriter System.Runtime.Serialization.XmlWriterDelegator
obj object
context System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson
declaredTypeHandle System.RuntimeTypeHandle
return void

WriteJsonValueCore() public method

public WriteJsonValueCore ( System.Runtime.Serialization.XmlWriterDelegator jsonWriter, object obj, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle ) : void
jsonWriter System.Runtime.Serialization.XmlWriterDelegator
obj object
context System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson
declaredTypeHandle System.RuntimeTypeHandle
return void