Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteXmlAttribute() [2/2]

void System.Xml.Serialization.XmlSerializationWriter.WriteXmlAttribute ( XmlNode node,
object? container )
inlineprotected

Definition at line 1031 of file XmlSerializationWriter.cs.

1032 {
1033 if (!(node is XmlAttribute xmlAttribute))
1034 {
1036 }
1037 if (xmlAttribute.Value != null)
1038 {
1039 if (xmlAttribute.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && xmlAttribute.LocalName == "arrayType")
1040 {
1041 string dims;
1042 XmlQualifiedName xmlQualifiedName = TypeScope.ParseWsdlArrayType(xmlAttribute.Value, out dims, (container is XmlSchemaObject) ? ((XmlSchemaObject)container) : null);
1044 WriteAttribute("arrayType", "http://schemas.xmlsoap.org/wsdl/", value);
1045 }
1046 else
1047 {
1048 WriteAttribute(xmlAttribute.Name, xmlAttribute.NamespaceURI, xmlAttribute.Value);
1049 }
1050 }
1051 }
static string XmlNeedAttributeHere
Definition SR.cs:1512
Definition SR.cs:7
string? FromXmlQualifiedName(XmlQualifiedName? xmlQualifiedName)
void WriteAttribute(string localName, string? ns, string? value)

References System.Xml.Dictionary, System.Xml.Serialization.XmlSerializationWriter.FromXmlQualifiedName(), System.Xml.Serialization.TypeScope.ParseWsdlArrayType(), System.value, System.Xml.Serialization.XmlSerializationWriter.WriteAttribute(), and System.SR.XmlNeedAttributeHere.