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

Inheritance: XmlObjectSerializer
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DataContractJsonSerializer ( System type )
type System

DataContractJsonSerializer() public méthode

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

DataContractJsonSerializer() public méthode

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

DataContractJsonSerializer() public méthode

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

DataContractJsonSerializer() public méthode

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

DataContractJsonSerializer() public méthode

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

DataContractJsonSerializer() public méthode

public DataContractJsonSerializer ( Type type ) : System.Runtime.Serialization
type System.Type
Résultat System.Runtime.Serialization

DataContractJsonSerializer() public méthode

public DataContractJsonSerializer ( Type type, DataContractJsonSerializerSettings settings ) : System.Runtime.Serialization
type System.Type
settings DataContractJsonSerializerSettings
Résultat System.Runtime.Serialization

DataContractJsonSerializer() public méthode

public DataContractJsonSerializer ( Type type, IEnumerable knownTypes ) : System.Runtime.Serialization
type System.Type
knownTypes IEnumerable
Résultat System.Runtime.Serialization

DataContractJsonSerializer() public méthode

public DataContractJsonSerializer ( Type type, XmlDictionaryString rootName ) : System.Runtime.Serialization
type System.Type
rootName System.Xml.XmlDictionaryString
Résultat System.Runtime.Serialization

DataContractJsonSerializer() public méthode

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

DataContractJsonSerializer() public méthode

public DataContractJsonSerializer ( Type type, string rootName ) : System.Runtime.Serialization
type System.Type
rootName string
Résultat System.Runtime.Serialization

DataContractJsonSerializer() public méthode

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

IsStartObject() public méthode

public IsStartObject ( System reader ) : bool
reader System
Résultat bool

IsStartObject() public méthode

public IsStartObject ( XmlDictionaryReader reader ) : bool
reader System.Xml.XmlDictionaryReader
Résultat bool

IsStartObject() public méthode

public IsStartObject ( XmlReader reader ) : bool
reader XmlReader
Résultat bool

ReadObject() public méthode

public ReadObject ( Stream stream ) : object
stream Stream
Résultat object

ReadObject() public méthode

public ReadObject ( System stream ) : object
stream System
Résultat object

ReadObject() public méthode

public ReadObject ( System reader, bool verifyObjectName ) : object
reader System
verifyObjectName bool
Résultat object

ReadObject() public méthode

public ReadObject ( XmlDictionaryReader reader ) : object
reader System.Xml.XmlDictionaryReader
Résultat object

ReadObject() public méthode

public ReadObject ( XmlDictionaryReader reader, bool verifyObjectName ) : object
reader System.Xml.XmlDictionaryReader
verifyObjectName bool
Résultat object

ReadObject() public méthode

public ReadObject ( XmlReader reader ) : object
reader XmlReader
Résultat object

ReadObject() public méthode

public ReadObject ( XmlReader reader, bool verifyObjectName ) : object
reader XmlReader
verifyObjectName bool
Résultat object

WriteEndObject() public méthode

public WriteEndObject ( System writer ) : void
writer System
Résultat void

WriteEndObject() public méthode

public WriteEndObject ( XmlDictionaryWriter writer ) : void
writer System.Xml.XmlDictionaryWriter
Résultat void

WriteEndObject() public méthode

public WriteEndObject ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
Résultat void

WriteObject() public méthode

public WriteObject ( Stream stream, object graph ) : void
stream Stream
graph object
Résultat void

WriteObject() public méthode

public WriteObject ( System stream, object graph ) : void
stream System
graph object
Résultat void

WriteObject() public méthode

public WriteObject ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter
graph object
Résultat void

WriteObject() public méthode

public WriteObject ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter
graph object
Résultat void

WriteObjectContent() public méthode

public WriteObjectContent ( System writer, object graph ) : void
writer System
graph object
Résultat void

WriteObjectContent() public méthode

public WriteObjectContent ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter
graph object
Résultat void

WriteObjectContent() public méthode

public WriteObjectContent ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter
graph object
Résultat void

WriteStartObject() public méthode

public WriteStartObject ( System writer, object graph ) : void
writer System
graph object
Résultat void

WriteStartObject() public méthode

public WriteStartObject ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter
graph object
Résultat void

WriteStartObject() public méthode

public WriteStartObject ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter
graph object
Résultat void