C# Class System.Xml.Serialization.ReflectionXmlSerializationWriter

Inheritance: XmlSerializationWriter
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CanOptimizeWriteListSequence bool
CovertPrimitiveToString string
FindXmlnsIndex int
GenerateTypeElement void
GetMemberValue object
GetMemberValue object
IsDefaultValue bool
WriteArray void
WriteArrayItems void
WriteAttribute void
WriteDerivedTypes bool
WriteElement void
WriteElements void
WriteEnumAndArrayTypes bool
WriteEnumMethod string
WriteMember void
WriteMember void
WriteMembersElement void
WriteObjectOfTypeElement void
WritePrimitive void
WritePrimitiveValue bool
WriteQualifiedNameElement void
WriteStructMethod void
WriteText void
hasRequirement bool

Public Methods

Method Description
ReflectionXmlSerializationWriter ( XmlMapping xmlMapping, XmlWriter xmlWriter, XmlSerializerNamespaces namespaces, string encodingStyle, string id ) : System
WriteObject ( object o ) : void

Protected Methods

Method Description
InitCallbacks ( ) : void

Private Methods

Method Description
CanOptimizeWriteListSequence ( TypeDesc listElementTypeDesc ) : bool
CovertPrimitiveToString ( object o, TypeDesc typeDesc ) : string
FindXmlnsIndex ( MemberMapping members ) : int
GenerateTypeElement ( object o, XmlTypeMapping xmlMapping ) : void
GetMemberValue ( object o, MemberInfo memberInfo ) : object
GetMemberValue ( object o, string memberName ) : object
IsDefaultValue ( TypeMapping mapping, object o, object value, bool isNullable ) : bool
WriteArray ( object o, object choiceSource, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc ) : void
WriteArrayItems ( ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc, object o ) : void
WriteAttribute ( object memberValue, AttributeAccessor attribute, object parent ) : void
WriteDerivedTypes ( StructMapping mapping, string n, string ns, object o, bool isNullable ) : bool
WriteElement ( object o, ElementAccessor element, string arrayName, bool writeAccessor, XmlMapping parentMapping = null ) : void
WriteElements ( object o, object enumSource, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable, XmlMapping parentMapping = null ) : void
WriteEnumAndArrayTypes ( StructMapping structMapping, object o, string n, string ns, XmlMapping parentMapping ) : bool
WriteEnumMethod ( EnumMapping mapping, object v ) : string
WriteMember ( object memberValue, AttributeAccessor attribute, TypeDesc memberTypeDesc, object parent ) : void
WriteMember ( object o, object choiceSource, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors, XmlMapping parentMapping = null ) : void
WriteMembersElement ( object o, XmlMembersMapping mapping ) : void
WriteObjectOfTypeElement ( object o, XmlTypeMapping mapping ) : void
WritePrimitive ( WritePrimitiveMethodRequirement method, string name, string ns, object defaultValue, object o, TypeMapping mapping, bool writeXsiType, bool isElement, bool isNullable ) : void
WritePrimitiveValue ( TypeDesc typeDesc, object o, bool isElement, string &stringValue ) : bool
WriteQualifiedNameElement ( string name, string ns, object defaultValue, XmlQualifiedName o, bool nullable, bool isSoap, PrimitiveMapping mapping ) : void
WriteStructMethod ( StructMapping mapping, string n, string ns, object o, bool isNullable, bool needType, XmlMapping parentMapping = null ) : void
WriteText ( object o, TextAccessor text ) : void
hasRequirement ( WritePrimitiveMethodRequirement value, WritePrimitiveMethodRequirement requirement ) : bool

Method Details

InitCallbacks() protected method

protected InitCallbacks ( ) : void
return void

ReflectionXmlSerializationWriter() public method

public ReflectionXmlSerializationWriter ( XmlMapping xmlMapping, XmlWriter xmlWriter, XmlSerializerNamespaces namespaces, string encodingStyle, string id ) : System
xmlMapping XmlMapping
xmlWriter XmlWriter
namespaces XmlSerializerNamespaces
encodingStyle string
id string
return System

WriteObject() public method

public WriteObject ( object o ) : void
o object
return void