C# Class System.Xml.Serialization.XmlSerializationWriter

Inheritance: XmlSerializationGeneratedCode
Show file Open project: dotnet/corefx Class Usage Examples

Protected Methods

Method Description
AddWriteCallback ( Type type, string typeName, string typeNs, XmlSerializationWriteCallback callback ) : void
CreateChoiceIdentifierValueException ( string value, string identifier, string name, string ns ) : Exception
CreateInvalidAnyTypeException ( Type type ) : Exception
CreateInvalidAnyTypeException ( object o ) : Exception
CreateInvalidChoiceIdentifierValueException ( string type, string identifier ) : Exception
CreateInvalidEnumValueException ( object value, string typeName ) : Exception
CreateMismatchChoiceException ( string value, string elementName, string enumValue ) : Exception
CreateUnknownAnyElementException ( string name, string ns ) : Exception
CreateUnknownTypeException ( Type type ) : Exception
CreateUnknownTypeException ( object o ) : Exception
FromByteArrayBase64 ( byte value ) : byte[]
FromByteArrayHex ( byte value ) : string
FromChar ( char value ) : string
FromDate ( System.DateTime value ) : string
FromDateTime ( System.DateTime value ) : string
FromEnum ( long value, string values, long ids ) : string
FromEnum ( long value, string values, long ids, string typeName ) : string
FromTime ( System.DateTime value ) : string
FromXmlNCName ( string ncName ) : string
FromXmlName ( string name ) : string
FromXmlNmToken ( string nmToken ) : string
FromXmlNmTokens ( string nmTokens ) : string
FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName ) : string
FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName, bool ignoreEmpty ) : string
InitCallbacks ( ) : void
ResolveDynamicAssembly ( string assemblyFullName ) : Assembly
TopLevelElement ( ) : void
WriteAttribute ( string localName, byte value ) : void
WriteAttribute ( string localName, string value ) : void
WriteAttribute ( string localName, string ns, byte value ) : void
WriteAttribute ( string localName, string ns, string value ) : void
WriteAttribute ( string prefix, string localName, string ns, string value ) : void
WriteElementEncoded ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
WriteElementLiteral ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
WriteElementQualifiedName ( String localName, String ns, XmlQualifiedName value ) : void
WriteElementQualifiedName ( String localName, XmlQualifiedName value ) : void
WriteElementQualifiedName ( string localName, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
WriteElementQualifiedName ( string localName, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
WriteElementString ( String localName, String value ) : void
WriteElementString ( String localName, String ns, String value ) : void
WriteElementString ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
WriteElementString ( String localName, String value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, String value ) : void
WriteElementStringRaw ( String localName, String ns, String value ) : void
WriteElementStringRaw ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, String value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, String ns, byte value ) : void
WriteElementStringRaw ( String localName, String ns, byte value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, byte value ) : void
WriteElementStringRaw ( String localName, byte value, XmlQualifiedName xsiType ) : void
WriteEmptyTag ( string name ) : void
WriteEmptyTag ( string name, string ns ) : void
WriteEndElement ( ) : void
WriteEndElement ( object o ) : void
WriteId ( object o ) : void
WriteNamespaceDeclarations ( XmlSerializerNamespaces xmlns ) : void
WriteNullTagEncoded ( string name ) : void
WriteNullTagEncoded ( string name, string ns ) : void
WriteNullTagLiteral ( string name ) : void
WriteNullTagLiteral ( string name, string ns ) : void
WriteNullableQualifiedNameEncoded ( string name, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
WriteNullableQualifiedNameLiteral ( string name, string ns, XmlQualifiedName value ) : void
WriteNullableStringEncoded ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
WriteNullableStringEncodedRaw ( string name, string ns, byte value, XmlQualifiedName xsiType ) : void
WriteNullableStringEncodedRaw ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
WriteNullableStringLiteral ( string name, string ns, string value ) : void
WriteNullableStringLiteralRaw ( string name, string ns, byte value ) : void
WriteNullableStringLiteralRaw ( string name, string ns, string value ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference, bool isNullable ) : void
WriteReferencedElements ( ) : void
WriteReferencingElement ( string n, string ns, object o ) : void
WriteReferencingElement ( string n, string ns, object o, bool isNullable ) : void
WriteRpcResult ( string name, string ns ) : void
WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable ) : void
WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable, bool wrapped ) : void
WriteStartDocument ( ) : void
WriteStartElement ( string name ) : void
WriteStartElement ( string name, string ns ) : void
WriteStartElement ( string name, string ns, bool writePrefixed ) : void
WriteStartElement ( string name, string ns, object o ) : void
WriteStartElement ( string name, string ns, object o, bool writePrefixed ) : void
WriteStartElement ( string name, string ns, object o, bool writePrefixed, XmlSerializerNamespaces xmlns ) : void
WriteTypedPrimitive ( string name, string ns, object o, bool xsiType ) : void
WriteValue ( byte value ) : void
WriteValue ( string value ) : void
WriteXmlAttribute ( XmlNode node ) : void
WriteXmlAttribute ( XmlNode node, object container ) : void
WriteXsiType ( string name, string ns ) : void

Private Methods

Method Description
GetId ( object o, bool addToReferencesList ) : string
GetPrimitiveTypeName ( Type type ) : XmlQualifiedName
GetPrimitiveTypeName ( Type type, bool throwIfUnknown ) : XmlQualifiedName
GetPrimitiveTypeNameInternal ( Type type ) : XmlQualifiedName
GetQualifiedName ( string name, string ns ) : string
GetTypeEntry ( Type t ) : TypeEntry
Init ( XmlWriter w, XmlSerializerNamespaces namespaces, string encodingStyle, string idBase ) : void
Init ( XmlWriter w, XmlSerializerNamespaces namespaces, string encodingStyle, string idBase, TempAssembly tempAssembly ) : void
IsIdDefined ( object o ) : bool
ListUsedPrefixes ( string>.Dictionary nsList, string prefix ) : HashSet
NextPrefix ( ) : string
WriteArray ( string name, string ns, object o, Type type ) : void
WriteElement ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
WriteId ( object o, bool addToReferencesList ) : void
WriteReferencedElement ( object o, Type ambientType ) : void
WriteReferencedElement ( string name, string ns, object o, Type ambientType ) : void

Method Details

AddWriteCallback() protected method

protected AddWriteCallback ( Type type, string typeName, string typeNs, XmlSerializationWriteCallback callback ) : void
type System.Type
typeName string
typeNs string
callback XmlSerializationWriteCallback
return void

CreateChoiceIdentifierValueException() protected method

protected CreateChoiceIdentifierValueException ( string value, string identifier, string name, string ns ) : Exception
value string
identifier string
name string
ns string
return System.Exception

CreateInvalidAnyTypeException() protected method

protected CreateInvalidAnyTypeException ( Type type ) : Exception
type System.Type
return System.Exception

CreateInvalidAnyTypeException() protected method

protected CreateInvalidAnyTypeException ( object o ) : Exception
o object
return System.Exception

CreateInvalidChoiceIdentifierValueException() protected method

protected CreateInvalidChoiceIdentifierValueException ( string type, string identifier ) : Exception
type string
identifier string
return System.Exception

CreateInvalidEnumValueException() protected method

protected CreateInvalidEnumValueException ( object value, string typeName ) : Exception
value object
typeName string
return System.Exception

CreateMismatchChoiceException() protected method

protected CreateMismatchChoiceException ( string value, string elementName, string enumValue ) : Exception
value string
elementName string
enumValue string
return System.Exception

CreateUnknownAnyElementException() protected method

protected CreateUnknownAnyElementException ( string name, string ns ) : Exception
name string
ns string
return System.Exception

CreateUnknownTypeException() protected method

protected CreateUnknownTypeException ( Type type ) : Exception
type System.Type
return System.Exception

CreateUnknownTypeException() protected method

protected CreateUnknownTypeException ( object o ) : Exception
o object
return System.Exception

FromByteArrayBase64() protected static method

protected static FromByteArrayBase64 ( byte value ) : byte[]
value byte
return byte[]

FromByteArrayHex() protected static method

protected static FromByteArrayHex ( byte value ) : string
value byte
return string

FromChar() protected static method

protected static FromChar ( char value ) : string
value char
return string

FromDate() protected static method

protected static FromDate ( System.DateTime value ) : string
value System.DateTime
return string

FromDateTime() protected static method

protected static FromDateTime ( System.DateTime value ) : string
value System.DateTime
return string

FromEnum() protected static method

protected static FromEnum ( long value, string values, long ids ) : string
value long
values string
ids long
return string

FromEnum() protected static method

protected static FromEnum ( long value, string values, long ids, string typeName ) : string
value long
values string
ids long
typeName string
return string

FromTime() protected static method

protected static FromTime ( System.DateTime value ) : string
value System.DateTime
return string

FromXmlNCName() protected static method

protected static FromXmlNCName ( string ncName ) : string
ncName string
return string

FromXmlName() protected static method

protected static FromXmlName ( string name ) : string
name string
return string

FromXmlNmToken() protected static method

protected static FromXmlNmToken ( string nmToken ) : string
nmToken string
return string

FromXmlNmTokens() protected static method

protected static FromXmlNmTokens ( string nmTokens ) : string
nmTokens string
return string

FromXmlQualifiedName() protected method

protected FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName ) : string
xmlQualifiedName XmlQualifiedName
return string

FromXmlQualifiedName() protected method

protected FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName, bool ignoreEmpty ) : string
xmlQualifiedName XmlQualifiedName
ignoreEmpty bool
return string

InitCallbacks() protected abstract method

protected abstract InitCallbacks ( ) : void
return void

ResolveDynamicAssembly() protected static method

protected static ResolveDynamicAssembly ( string assemblyFullName ) : Assembly
assemblyFullName string
return System.Reflection.Assembly

TopLevelElement() protected method

protected TopLevelElement ( ) : void
return void

WriteAttribute() protected method

protected WriteAttribute ( string localName, byte value ) : void
localName string
value byte
return void

WriteAttribute() protected method

protected WriteAttribute ( string localName, string value ) : void
localName string
value string
return void

WriteAttribute() protected method

protected WriteAttribute ( string localName, string ns, byte value ) : void
localName string
ns string
value byte
return void

WriteAttribute() protected method

protected WriteAttribute ( string localName, string ns, string value ) : void
localName string
ns string
value string
return void

WriteAttribute() protected method

protected WriteAttribute ( string prefix, string localName, string ns, string value ) : void
prefix string
localName string
ns string
value string
return void

WriteElementEncoded() protected method

protected WriteElementEncoded ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
node XmlNode
name string
ns string
isNullable bool
any bool
return void

WriteElementLiteral() protected method

protected WriteElementLiteral ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
node XmlNode
name string
ns string
isNullable bool
any bool
return void

WriteElementQualifiedName() protected method

protected WriteElementQualifiedName ( String localName, String ns, XmlQualifiedName value ) : void
localName String
ns String
value XmlQualifiedName
return void

WriteElementQualifiedName() protected method

protected WriteElementQualifiedName ( String localName, XmlQualifiedName value ) : void
localName String
value XmlQualifiedName
return void

WriteElementQualifiedName() protected method

protected WriteElementQualifiedName ( string localName, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
localName string
value XmlQualifiedName
xsiType XmlQualifiedName
return void

WriteElementQualifiedName() protected method

protected WriteElementQualifiedName ( string localName, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
localName string
ns string
value XmlQualifiedName
xsiType XmlQualifiedName
return void

WriteElementString() protected method

protected WriteElementString ( String localName, String value ) : void
localName String
value String
return void

WriteElementString() protected method

protected WriteElementString ( String localName, String ns, String value ) : void
localName String
ns String
value String
return void

WriteElementString() protected method

protected WriteElementString ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
localName String
ns String
value String
xsiType XmlQualifiedName
return void

WriteElementString() protected method

protected WriteElementString ( String localName, String value, XmlQualifiedName xsiType ) : void
localName String
value String
xsiType XmlQualifiedName
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, String value ) : void
localName String
value String
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, String ns, String value ) : void
localName String
ns String
value String
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
localName String
ns String
value String
xsiType XmlQualifiedName
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, String value, XmlQualifiedName xsiType ) : void
localName String
value String
xsiType XmlQualifiedName
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, String ns, byte value ) : void
localName String
ns String
value byte
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, String ns, byte value, XmlQualifiedName xsiType ) : void
localName String
ns String
value byte
xsiType XmlQualifiedName
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, byte value ) : void
localName String
value byte
return void

WriteElementStringRaw() protected method

protected WriteElementStringRaw ( String localName, byte value, XmlQualifiedName xsiType ) : void
localName String
value byte
xsiType XmlQualifiedName
return void

WriteEmptyTag() protected method

protected WriteEmptyTag ( string name ) : void
name string
return void

WriteEmptyTag() protected method

protected WriteEmptyTag ( string name, string ns ) : void
name string
ns string
return void

WriteEndElement() protected method

protected WriteEndElement ( ) : void
return void

WriteEndElement() protected method

protected WriteEndElement ( object o ) : void
o object
return void

WriteId() protected method

protected WriteId ( object o ) : void
o object
return void

WriteNamespaceDeclarations() protected method

protected WriteNamespaceDeclarations ( XmlSerializerNamespaces xmlns ) : void
xmlns XmlSerializerNamespaces
return void

WriteNullTagEncoded() protected method

protected WriteNullTagEncoded ( string name ) : void
name string
return void

WriteNullTagEncoded() protected method

protected WriteNullTagEncoded ( string name, string ns ) : void
name string
ns string
return void

WriteNullTagLiteral() protected method

protected WriteNullTagLiteral ( string name ) : void
name string
return void

WriteNullTagLiteral() protected method

protected WriteNullTagLiteral ( string name, string ns ) : void
name string
ns string
return void

WriteNullableQualifiedNameEncoded() protected method

protected WriteNullableQualifiedNameEncoded ( string name, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
name string
ns string
value XmlQualifiedName
xsiType XmlQualifiedName
return void

WriteNullableQualifiedNameLiteral() protected method

protected WriteNullableQualifiedNameLiteral ( string name, string ns, XmlQualifiedName value ) : void
name string
ns string
value XmlQualifiedName
return void

WriteNullableStringEncoded() protected method

protected WriteNullableStringEncoded ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
name string
ns string
value string
xsiType XmlQualifiedName
return void

WriteNullableStringEncodedRaw() protected method

protected WriteNullableStringEncodedRaw ( string name, string ns, byte value, XmlQualifiedName xsiType ) : void
name string
ns string
value byte
xsiType XmlQualifiedName
return void

WriteNullableStringEncodedRaw() protected method

protected WriteNullableStringEncodedRaw ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
name string
ns string
value string
xsiType XmlQualifiedName
return void

WriteNullableStringLiteral() protected method

protected WriteNullableStringLiteral ( string name, string ns, string value ) : void
name string
ns string
value string
return void

WriteNullableStringLiteralRaw() protected method

protected WriteNullableStringLiteralRaw ( string name, string ns, byte value ) : void
name string
ns string
value byte
return void

WriteNullableStringLiteralRaw() protected method

protected WriteNullableStringLiteralRaw ( string name, string ns, string value ) : void
name string
ns string
value string
return void

WritePotentiallyReferencingElement() protected method

protected WritePotentiallyReferencingElement ( string n, string ns, object o ) : void
n string
ns string
o object
return void

WritePotentiallyReferencingElement() protected method

protected WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType ) : void
n string
ns string
o object
ambientType System.Type
return void

WritePotentiallyReferencingElement() protected method

protected WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference ) : void
n string
ns string
o object
ambientType System.Type
suppressReference bool
return void

WritePotentiallyReferencingElement() protected method

protected WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference, bool isNullable ) : void
n string
ns string
o object
ambientType System.Type
suppressReference bool
isNullable bool
return void

WriteReferencedElements() protected method

protected WriteReferencedElements ( ) : void
return void

WriteReferencingElement() protected method

protected WriteReferencingElement ( string n, string ns, object o ) : void
n string
ns string
o object
return void

WriteReferencingElement() protected method

protected WriteReferencingElement ( string n, string ns, object o, bool isNullable ) : void
n string
ns string
o object
isNullable bool
return void

WriteRpcResult() protected method

protected WriteRpcResult ( string name, string ns ) : void
name string
ns string
return void

WriteSerializable() protected method

protected WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable ) : void
serializable IXmlSerializable
name string
ns string
isNullable bool
return void

WriteSerializable() protected method

protected WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable, bool wrapped ) : void
serializable IXmlSerializable
name string
ns string
isNullable bool
wrapped bool
return void

WriteStartDocument() protected method

protected WriteStartDocument ( ) : void
return void

WriteStartElement() protected method

protected WriteStartElement ( string name ) : void
name string
return void

WriteStartElement() protected method

protected WriteStartElement ( string name, string ns ) : void
name string
ns string
return void

WriteStartElement() protected method

protected WriteStartElement ( string name, string ns, bool writePrefixed ) : void
name string
ns string
writePrefixed bool
return void

WriteStartElement() protected method

protected WriteStartElement ( string name, string ns, object o ) : void
name string
ns string
o object
return void

WriteStartElement() protected method

protected WriteStartElement ( string name, string ns, object o, bool writePrefixed ) : void
name string
ns string
o object
writePrefixed bool
return void

WriteStartElement() protected method

protected WriteStartElement ( string name, string ns, object o, bool writePrefixed, XmlSerializerNamespaces xmlns ) : void
name string
ns string
o object
writePrefixed bool
xmlns XmlSerializerNamespaces
return void

WriteTypedPrimitive() protected method

protected WriteTypedPrimitive ( string name, string ns, object o, bool xsiType ) : void
name string
ns string
o object
xsiType bool
return void

WriteValue() protected method

protected WriteValue ( byte value ) : void
value byte
return void

WriteValue() protected method

protected WriteValue ( string value ) : void
value string
return void

WriteXmlAttribute() protected method

protected WriteXmlAttribute ( XmlNode node ) : void
node XmlNode
return void

WriteXmlAttribute() protected method

protected WriteXmlAttribute ( XmlNode node, object container ) : void
node XmlNode
container object
return void

WriteXsiType() protected method

protected WriteXsiType ( string name, string ns ) : void
name string
ns string
return void