C# Class System.Xml.Serialization.XmlSerializer

Exibir arquivo Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
DefaultNamespace string

Private Properties

Property Type Description
DemandForUserLocationOrEvidence void
DeserializePrimitive object
GenerateTempAssembly TempAssembly
GenerateTempAssembly TempAssembly
GenerateTempAssembly TempAssembly
GetKnownMapping XmlTypeMapping
GetSerializersFromCache System.Xml.Serialization.XmlSerializer[]
GetXmlSerializerContractFromGeneratedAssembly XmlSerializerImplementation
SerializePrimitive void
SetTempAssembly void

Public Methods

Method Description
CanDeserialize ( System.IO.XmlReader xmlReader ) : bool
Deserialize ( Stream stream ) : object
Deserialize ( TextReader textReader ) : object
Deserialize ( System.IO.XmlReader xmlReader ) : object
Deserialize ( System.IO.XmlReader xmlReader, XmlDeserializationEvents events ) : object
Deserialize ( System.IO.XmlReader xmlReader, string encodingStyle ) : object
Deserialize ( System.IO.XmlReader xmlReader, string encodingStyle, XmlDeserializationEvents events ) : object
FromMappings ( XmlMapping mappings ) : System.Xml.Serialization.XmlSerializer[]
FromMappings ( XmlMapping mappings, Type type ) : System.Xml.Serialization.XmlSerializer[]
FromTypes ( Type types ) : System.Xml.Serialization.XmlSerializer[]
GetXmlSerializerAssemblyName ( Type type ) : string
GetXmlSerializerAssemblyName ( Type type, string defaultNamespace ) : string
Serialize ( Stream stream, object o ) : void
Serialize ( Stream stream, object o, XmlSerializerNamespaces namespaces ) : void
Serialize ( TextWriter textWriter, object o ) : void
Serialize ( TextWriter textWriter, object o, XmlSerializerNamespaces namespaces ) : void
Serialize ( XmlWriter xmlWriter, object o ) : void
Serialize ( XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces ) : void
Serialize ( XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces, string encodingStyle ) : void
Serialize ( XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces, string encodingStyle, string id ) : void
SetXmlSerializerContract ( XmlSerializerImplementation xmlSerializerImplementation ) : void
XmlSerializer ( Type type ) : System.Reflection
XmlSerializer ( Type type, Type extraTypes ) : System.Reflection
XmlSerializer ( Type type, XmlAttributeOverrides overrides ) : System.Reflection
XmlSerializer ( Type type, XmlAttributeOverrides overrides, Type extraTypes, XmlRootAttribute root, string defaultNamespace ) : System.Reflection
XmlSerializer ( Type type, XmlAttributeOverrides overrides, Type extraTypes, XmlRootAttribute root, string defaultNamespace, string location ) : System.Reflection
XmlSerializer ( Type type, XmlRootAttribute root ) : System.Reflection
XmlSerializer ( Type type, string defaultNamespace ) : System.Reflection
XmlSerializer ( XmlTypeMapping xmlTypeMapping ) : System.Reflection

Protected Methods

Method Description
CreateReader ( ) : XmlSerializationReader
CreateWriter ( ) : XmlSerializationWriter
Deserialize ( XmlSerializationReader reader ) : object
Serialize ( object o, XmlSerializationWriter writer ) : void
XmlSerializer ( ) : System.Reflection

Private Methods

Method Description
DemandForUserLocationOrEvidence ( ) : void
DeserializePrimitive ( System.IO.XmlReader xmlReader, XmlDeserializationEvents events ) : object
GenerateTempAssembly ( XmlMapping xmlMapping ) : TempAssembly
GenerateTempAssembly ( XmlMapping xmlMapping, Type type, string defaultNamespace ) : TempAssembly
GenerateTempAssembly ( XmlMapping xmlMapping, Type type, string defaultNamespace, string location ) : TempAssembly
GetKnownMapping ( Type type, string ns ) : XmlTypeMapping
GetSerializersFromCache ( XmlMapping mappings, Type type ) : System.Xml.Serialization.XmlSerializer[]
GetXmlSerializerContractFromGeneratedAssembly ( ) : XmlSerializerImplementation
SerializePrimitive ( XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces ) : void
SetTempAssembly ( TempAssembly tempAssembly, XmlMapping mapping ) : void

Method Details

CanDeserialize() public method

public CanDeserialize ( System.IO.XmlReader xmlReader ) : bool
xmlReader System.IO.XmlReader
return bool

CreateReader() protected method

protected CreateReader ( ) : XmlSerializationReader
return XmlSerializationReader

CreateWriter() protected method

protected CreateWriter ( ) : XmlSerializationWriter
return XmlSerializationWriter

Deserialize() public method

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

Deserialize() public method

public Deserialize ( TextReader textReader ) : object
textReader System.IO.TextReader
return object

Deserialize() public method

public Deserialize ( System.IO.XmlReader xmlReader ) : object
xmlReader System.IO.XmlReader
return object

Deserialize() public method

public Deserialize ( System.IO.XmlReader xmlReader, XmlDeserializationEvents events ) : object
xmlReader System.IO.XmlReader
events XmlDeserializationEvents
return object

Deserialize() public method

public Deserialize ( System.IO.XmlReader xmlReader, string encodingStyle ) : object
xmlReader System.IO.XmlReader
encodingStyle string
return object

Deserialize() public method

public Deserialize ( System.IO.XmlReader xmlReader, string encodingStyle, XmlDeserializationEvents events ) : object
xmlReader System.IO.XmlReader
encodingStyle string
events XmlDeserializationEvents
return object

Deserialize() protected method

protected Deserialize ( XmlSerializationReader reader ) : object
reader XmlSerializationReader
return object

FromMappings() public static method

public static FromMappings ( XmlMapping mappings ) : System.Xml.Serialization.XmlSerializer[]
mappings XmlMapping
return System.Xml.Serialization.XmlSerializer[]

FromMappings() public static method

public static FromMappings ( XmlMapping mappings, Type type ) : System.Xml.Serialization.XmlSerializer[]
mappings XmlMapping
type System.Type
return System.Xml.Serialization.XmlSerializer[]

FromTypes() public static method

public static FromTypes ( Type types ) : System.Xml.Serialization.XmlSerializer[]
types System.Type
return System.Xml.Serialization.XmlSerializer[]

GetXmlSerializerAssemblyName() public static method

public static GetXmlSerializerAssemblyName ( Type type ) : string
type System.Type
return string

GetXmlSerializerAssemblyName() public static method

public static GetXmlSerializerAssemblyName ( Type type, string defaultNamespace ) : string
type System.Type
defaultNamespace string
return string

Serialize() public method

public Serialize ( Stream stream, object o ) : void
stream Stream
o object
return void

Serialize() public method

public Serialize ( Stream stream, object o, XmlSerializerNamespaces namespaces ) : void
stream Stream
o object
namespaces XmlSerializerNamespaces
return void

Serialize() public method

public Serialize ( TextWriter textWriter, object o ) : void
textWriter System.IO.TextWriter
o object
return void

Serialize() public method

public Serialize ( TextWriter textWriter, object o, XmlSerializerNamespaces namespaces ) : void
textWriter System.IO.TextWriter
o object
namespaces XmlSerializerNamespaces
return void

Serialize() public method

public Serialize ( XmlWriter xmlWriter, object o ) : void
xmlWriter XmlWriter
o object
return void

Serialize() public method

public Serialize ( XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces ) : void
xmlWriter XmlWriter
o object
namespaces XmlSerializerNamespaces
return void

Serialize() public method

public Serialize ( XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces, string encodingStyle ) : void
xmlWriter XmlWriter
o object
namespaces XmlSerializerNamespaces
encodingStyle string
return void

Serialize() public method

public Serialize ( XmlWriter xmlWriter, object o, XmlSerializerNamespaces namespaces, string encodingStyle, string id ) : void
xmlWriter XmlWriter
o object
namespaces XmlSerializerNamespaces
encodingStyle string
id string
return void

Serialize() protected method

protected Serialize ( object o, XmlSerializationWriter writer ) : void
o object
writer XmlSerializationWriter
return void

SetXmlSerializerContract() public static method

public static SetXmlSerializerContract ( XmlSerializerImplementation xmlSerializerImplementation ) : void
xmlSerializerImplementation XmlSerializerImplementation
return void

XmlSerializer() protected method

protected XmlSerializer ( ) : System.Reflection
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( Type type ) : System.Reflection
type System.Type
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( Type type, Type extraTypes ) : System.Reflection
type System.Type
extraTypes System.Type
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( Type type, XmlAttributeOverrides overrides ) : System.Reflection
type System.Type
overrides XmlAttributeOverrides
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( Type type, XmlAttributeOverrides overrides, Type extraTypes, XmlRootAttribute root, string defaultNamespace ) : System.Reflection
type System.Type
overrides XmlAttributeOverrides
extraTypes System.Type
root XmlRootAttribute
defaultNamespace string
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( Type type, XmlAttributeOverrides overrides, Type extraTypes, XmlRootAttribute root, string defaultNamespace, string location ) : System.Reflection
type System.Type
overrides XmlAttributeOverrides
extraTypes System.Type
root XmlRootAttribute
defaultNamespace string
location string
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( Type type, XmlRootAttribute root ) : System.Reflection
type System.Type
root XmlRootAttribute
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( Type type, string defaultNamespace ) : System.Reflection
type System.Type
defaultNamespace string
return System.Reflection

XmlSerializer() public method

public XmlSerializer ( XmlTypeMapping xmlTypeMapping ) : System.Reflection
xmlTypeMapping XmlTypeMapping
return System.Reflection

Property Details

DefaultNamespace public_oe property

public string DefaultNamespace
return string