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

◆ Write()

void System.Xml.Linq.StreamingElementWriter.Write ( object content)
inlineprivate

Definition at line 79 of file StreamingElementWriter.cs.

80 {
81 if (content == null)
82 {
83 return;
84 }
85 if (content is XNode n)
86 {
87 WriteNode(n);
88 return;
89 }
90 if (content is string s)
91 {
93 return;
94 }
95 if (content is XAttribute a)
96 {
98 return;
99 }
100 if (content is XStreamingElement e)
101 {
103 return;
104 }
105 if (content is object[] array)
106 {
107 object[] array2 = array;
108 foreach (object content2 in array2)
109 {
111 }
112 return;
113 }
114 if (content is IEnumerable enumerable)
115 {
116 {
117 foreach (object item in enumerable)
118 {
119 Write(item);
120 }
121 return;
122 }
123 }
124 WriteString(XContainer.GetStringValue(content));
125 }

References System.array, System.Xml.Linq.XContainer.GetStringValue(), System.item, and System.s.