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

◆ CreateWrapperXmlElement()

static XmlNode System.Runtime.Serialization.XmlObjectSerializerReadContext.CreateWrapperXmlElement ( XmlDocument document,
IList< XmlAttribute > xmlAttributes,
IList< XmlNode > xmlChildNodes,
string prefix,
string localName,
string ns )
inlinestaticpackageinherited

Definition at line 1030 of file XmlObjectSerializerReadContext.cs.

1031 {
1032 localName = localName ?? "wrapper";
1033 ns = ns ?? string.Empty;
1034 XmlElement xmlElement = document.CreateElement(prefix, localName, ns);
1035 if (xmlAttributes != null)
1036 {
1037 for (int i = 0; i < xmlAttributes.Count; i++)
1038 {
1039 xmlElement.Attributes.Append(xmlAttributes[i]);
1040 }
1041 }
1042 if (xmlChildNodes != null)
1043 {
1044 for (int j = 0; j < xmlChildNodes.Count; j++)
1045 {
1046 xmlElement.AppendChild(xmlChildNodes[j]);
1047 }
1048 }
1049 return xmlElement;
1050 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, and System.prefix.

Referenced by System.Runtime.Serialization.XmlObjectSerializerReadContext.CreateReaderOverChildNodes().