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

◆ PushElement()

void System.Xml.Linq.ElementWriter.PushElement ( XElement e)
inlineprivate

Definition at line 152 of file ElementWriter.cs.

153 {
155 XAttribute xAttribute = e.lastAttr;
156 if (xAttribute == null)
157 {
158 return;
159 }
160 do
161 {
162 xAttribute = xAttribute.next;
163 if (xAttribute.IsNamespaceDeclaration)
164 {
165 _resolver.Add((xAttribute.Name.NamespaceName.Length == 0) ? string.Empty : xAttribute.Name.LocalName, XNamespace.Get(xAttribute.Value));
166 }
167 }
168 while (xAttribute != e.lastAttr);
169 }
void Add(string prefix, XNamespace ns)

References System.Xml.Linq.ElementWriter._resolver, System.Xml.Linq.NamespaceResolver.Add(), System.Xml.Dictionary, System.Xml.Linq.XNamespace.Get(), System.Xml.Linq.XElement.lastAttr, System.Xml.Linq.XAttribute.next, and System.Xml.Linq.NamespaceResolver.PushScope().

Referenced by System.Xml.Linq.ElementWriter.WriteStartElement().