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

Inheritance: XmlObjectSerializer
ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CharacterNeedsEscaping bool
CheckIfJsonNameRequiresMapping bool
CheckIfJsonNameRequiresMapping bool
CheckIfTypeIsReference void
ConvertXmlNameToJsonName System.Xml.XmlDictionaryString
ConvertXmlNameToJsonName string
GetDataContract DataContract
GetKnownTypesFromContext List
InvokeOnDeserialized void
InvokeOnDeserializing void
InvokeOnSerialized void
InvokeOnSerializing void
ReadJsonValue object
WriteJsonValue void

Public Methods

Method Description
DataContractJsonSerializer ( System type )
DataContractJsonSerializer ( System type, System settings )
DataContractJsonSerializer ( System type, System rootName, System knownTypes )
DataContractJsonSerializer ( System type, System knownTypes )
DataContractJsonSerializer ( System type, string rootName )
DataContractJsonSerializer ( System type, string rootName, System knownTypes )
DataContractJsonSerializer ( Type type ) : System.Runtime.Serialization
DataContractJsonSerializer ( Type type, DataContractJsonSerializerSettings settings ) : System.Runtime.Serialization
DataContractJsonSerializer ( Type type, IEnumerable knownTypes ) : System.Runtime.Serialization
DataContractJsonSerializer ( Type type, XmlDictionaryString rootName ) : System.Runtime.Serialization
DataContractJsonSerializer ( Type type, XmlDictionaryString rootName, IEnumerable knownTypes ) : System.Runtime.Serialization
DataContractJsonSerializer ( Type type, string rootName ) : System.Runtime.Serialization
DataContractJsonSerializer ( Type type, string rootName, IEnumerable knownTypes ) : System.Runtime.Serialization
IsStartObject ( System reader ) : bool
IsStartObject ( XmlDictionaryReader reader ) : bool
IsStartObject ( XmlReader reader ) : bool
ReadObject ( Stream stream ) : object
ReadObject ( System stream ) : object
ReadObject ( System reader, bool verifyObjectName ) : object
ReadObject ( XmlDictionaryReader reader ) : object
ReadObject ( XmlDictionaryReader reader, bool verifyObjectName ) : object
ReadObject ( XmlReader reader ) : object
ReadObject ( XmlReader reader, bool verifyObjectName ) : object
WriteEndObject ( System writer ) : void
WriteEndObject ( XmlDictionaryWriter writer ) : void
WriteEndObject ( XmlWriter writer ) : void
WriteObject ( Stream stream, object graph ) : void
WriteObject ( System stream, object graph ) : void
WriteObject ( XmlDictionaryWriter writer, object graph ) : void
WriteObject ( XmlWriter writer, object graph ) : void
WriteObjectContent ( System writer, object graph ) : void
WriteObjectContent ( XmlDictionaryWriter writer, object graph ) : void
WriteObjectContent ( XmlWriter writer, object graph ) : void
WriteStartObject ( System writer, object graph ) : void
WriteStartObject ( XmlDictionaryWriter writer, object graph ) : void
WriteStartObject ( XmlWriter writer, object graph ) : void

Private Methods

Method Description
CharacterNeedsEscaping ( char ch ) : bool
CheckIfJsonNameRequiresMapping ( XmlDictionaryString jsonName ) : bool
CheckIfJsonNameRequiresMapping ( string jsonName ) : bool
CheckIfTypeIsReference ( DataContract dataContract ) : void
ConvertXmlNameToJsonName ( XmlDictionaryString xmlName ) : XmlDictionaryString
ConvertXmlNameToJsonName ( string xmlName ) : string
GetDataContract ( DataContract declaredTypeContract, Type declaredType, Type objectType ) : DataContract
GetKnownTypesFromContext ( XmlObjectSerializerContext context, IList serializerKnownTypeList ) : List
InvokeOnDeserialized ( object value, DataContract contract, System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson context ) : void
InvokeOnDeserializing ( Object value, DataContract contract, System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson context ) : void
InvokeOnSerialized ( Object value, DataContract contract, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context ) : void
InvokeOnSerializing ( Object value, DataContract contract, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context ) : void
ReadJsonValue ( DataContract contract, XmlReaderDelegator reader, System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson context ) : object
WriteJsonValue ( JsonDataContract contract, XmlWriterDelegator writer, object graph, System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle ) : void

Method Details

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( System type )
type System

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( System type, System settings )
type System
settings System

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( System type, System rootName, System knownTypes )
type System
rootName System
knownTypes System

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( System type, System knownTypes )
type System
knownTypes System

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( System type, string rootName )
type System
rootName string

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( System type, string rootName, System knownTypes )
type System
rootName string
knownTypes System

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( Type type ) : System.Runtime.Serialization
type System.Type
return System.Runtime.Serialization

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( Type type, DataContractJsonSerializerSettings settings ) : System.Runtime.Serialization
type System.Type
settings DataContractJsonSerializerSettings
return System.Runtime.Serialization

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( Type type, IEnumerable knownTypes ) : System.Runtime.Serialization
type System.Type
knownTypes IEnumerable
return System.Runtime.Serialization

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( Type type, XmlDictionaryString rootName ) : System.Runtime.Serialization
type System.Type
rootName System.Xml.XmlDictionaryString
return System.Runtime.Serialization

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( Type type, XmlDictionaryString rootName, IEnumerable knownTypes ) : System.Runtime.Serialization
type System.Type
rootName System.Xml.XmlDictionaryString
knownTypes IEnumerable
return System.Runtime.Serialization

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( Type type, string rootName ) : System.Runtime.Serialization
type System.Type
rootName string
return System.Runtime.Serialization

DataContractJsonSerializer() public method

public DataContractJsonSerializer ( Type type, string rootName, IEnumerable knownTypes ) : System.Runtime.Serialization
type System.Type
rootName string
knownTypes IEnumerable
return System.Runtime.Serialization

IsStartObject() public method

public IsStartObject ( System reader ) : bool
reader System
return bool

IsStartObject() public method

public IsStartObject ( XmlDictionaryReader reader ) : bool
reader System.Xml.XmlDictionaryReader
return bool

IsStartObject() public method

public IsStartObject ( XmlReader reader ) : bool
reader XmlReader
return bool

ReadObject() public method

public ReadObject ( Stream stream ) : object
stream Stream
return object

ReadObject() public method

public ReadObject ( System stream ) : object
stream System
return object

ReadObject() public method

public ReadObject ( System reader, bool verifyObjectName ) : object
reader System
verifyObjectName bool
return object

ReadObject() public method

public ReadObject ( XmlDictionaryReader reader ) : object
reader System.Xml.XmlDictionaryReader
return object

ReadObject() public method

public ReadObject ( XmlDictionaryReader reader, bool verifyObjectName ) : object
reader System.Xml.XmlDictionaryReader
verifyObjectName bool
return object

ReadObject() public method

public ReadObject ( XmlReader reader ) : object
reader XmlReader
return object

ReadObject() public method

public ReadObject ( XmlReader reader, bool verifyObjectName ) : object
reader XmlReader
verifyObjectName bool
return object

WriteEndObject() public method

public WriteEndObject ( System writer ) : void
writer System
return void

WriteEndObject() public method

public WriteEndObject ( XmlDictionaryWriter writer ) : void
writer System.Xml.XmlDictionaryWriter
return void

WriteEndObject() public method

public WriteEndObject ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void

WriteObject() public method

public WriteObject ( Stream stream, object graph ) : void
stream Stream
graph object
return void

WriteObject() public method

public WriteObject ( System stream, object graph ) : void
stream System
graph object
return void

WriteObject() public method

public WriteObject ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter
graph object
return void

WriteObject() public method

public WriteObject ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter
graph object
return void

WriteObjectContent() public method

public WriteObjectContent ( System writer, object graph ) : void
writer System
graph object
return void

WriteObjectContent() public method

public WriteObjectContent ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter
graph object
return void

WriteObjectContent() public method

public WriteObjectContent ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter
graph object
return void

WriteStartObject() public method

public WriteStartObject ( System writer, object graph ) : void
writer System
graph object
return void

WriteStartObject() public method

public WriteStartObject ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter
graph object
return void

WriteStartObject() public method

public WriteStartObject ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter
graph object
return void