C# Class System.Runtime.Serialization.XmlObjectSerializer

Mostrar archivo Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CheckIfNeedsContractNsAtRoot bool
CheckNull void
CreateSerializationException SerializationException
CreateSerializationException SerializationException
CreateSerializationExceptionWithReaderDetails System.Exception
GetDeserializeType System.Type
GetSerializeType System.Type
GetTypeInfoError string
InternalIsStartObject bool
InternalReadObject object
InternalReadObject object
InternalWriteEndObject void
InternalWriteObject void
InternalWriteObject void
InternalWriteObjectContent void
InternalWriteStartObject void
IsContractDeclared bool
IsRootElement bool
IsRootXmlAny bool
IsStartElement bool
IsStartObjectHandleExceptions bool
ReadObjectHandleExceptions object
ReadObjectHandleExceptions object
TryAddLineInfo string
WriteEndObjectHandleExceptions void
WriteNull void
WriteObjectContentHandleExceptions void
WriteObjectHandleExceptions void
WriteObjectHandleExceptions void
WriteRootElement void
WriteStartObjectHandleExceptions void

Public Methods

Method Description
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

Protected Methods

Method Description
XmlObjectSerializer ( )

Private Methods

Method Description
CheckIfNeedsContractNsAtRoot ( XmlDictionaryString name, XmlDictionaryString ns, System.Runtime.Serialization.DataContract contract ) : bool
CheckNull ( object obj, string name ) : void
CreateSerializationException ( string errorMessage ) : SerializationException
CreateSerializationException ( string errorMessage, Exception innerException ) : SerializationException
CreateSerializationExceptionWithReaderDetails ( string errorMessage, System.Runtime.Serialization.XmlReaderDelegator reader ) : Exception
GetDeserializeType ( ) : Type
GetSerializeType ( object graph ) : Type
GetTypeInfoError ( string errorMessage, Type type, Exception innerException ) : string
InternalIsStartObject ( System.Runtime.Serialization.XmlReaderDelegator reader ) : bool
InternalReadObject ( System.Runtime.Serialization.XmlReaderDelegator reader, bool verifyObjectName ) : object
InternalReadObject ( System.Runtime.Serialization.XmlReaderDelegator reader, bool verifyObjectName, DataContractResolver dataContractResolver ) : object
InternalWriteEndObject ( System.Runtime.Serialization.XmlWriterDelegator writer ) : void
InternalWriteObject ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph ) : void
InternalWriteObject ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph, DataContractResolver dataContractResolver ) : void
InternalWriteObjectContent ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph ) : void
InternalWriteStartObject ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph ) : void
IsContractDeclared ( System.Runtime.Serialization.DataContract contract, System.Runtime.Serialization.DataContract declaredContract ) : bool
IsRootElement ( System.Runtime.Serialization.XmlReaderDelegator reader, System.Runtime.Serialization.DataContract contract, XmlDictionaryString name, XmlDictionaryString ns ) : bool
IsRootXmlAny ( XmlDictionaryString rootName, System.Runtime.Serialization.DataContract contract ) : bool
IsStartElement ( System.Runtime.Serialization.XmlReaderDelegator reader ) : bool
IsStartObjectHandleExceptions ( System.Runtime.Serialization.XmlReaderDelegator reader ) : bool
ReadObjectHandleExceptions ( System.Runtime.Serialization.XmlReaderDelegator reader, bool verifyObjectName ) : object
ReadObjectHandleExceptions ( System.Runtime.Serialization.XmlReaderDelegator reader, bool verifyObjectName, DataContractResolver dataContractResolver ) : object
TryAddLineInfo ( System.Runtime.Serialization.XmlReaderDelegator reader, string errorMessage ) : string
WriteEndObjectHandleExceptions ( System.Runtime.Serialization.XmlWriterDelegator writer ) : void
WriteNull ( System.Runtime.Serialization.XmlWriterDelegator writer ) : void
WriteObjectContentHandleExceptions ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph ) : void
WriteObjectHandleExceptions ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph ) : void
WriteObjectHandleExceptions ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph, DataContractResolver dataContractResolver ) : void
WriteRootElement ( System.Runtime.Serialization.XmlWriterDelegator writer, System.Runtime.Serialization.DataContract contract, XmlDictionaryString name, XmlDictionaryString ns, bool needsContractNsAtRoot ) : void
WriteStartObjectHandleExceptions ( System.Runtime.Serialization.XmlWriterDelegator writer, object graph ) : void

Method Details

IsStartObject() public abstract method

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

IsStartObject() public abstract method

public abstract 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 abstract method

public abstract 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 abstract method

public abstract 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 abstract method

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

WriteEndObject() public abstract method

public abstract 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 abstract method

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

WriteObjectContent() public abstract method

public abstract 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 abstract method

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

WriteStartObject() public abstract method

public abstract 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

XmlObjectSerializer() protected method

protected XmlObjectSerializer ( )