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

◆ AddContent()

void System.Xml.Linq.Inserter.AddContent ( object content)
inlineprivate

Definition at line 64 of file Inserter.cs.

65 {
66 if (content == null)
67 {
68 return;
69 }
70 if (content is XNode n)
71 {
72 AddNode(n);
73 return;
74 }
75 if (content is string s)
76 {
77 AddString(s);
78 return;
79 }
80 if (content is XStreamingElement other)
81 {
82 AddNode(new XElement(other));
83 return;
84 }
85 if (content is object[] array)
86 {
87 object[] array2 = array;
88 foreach (object content2 in array2)
89 {
91 }
92 return;
93 }
94 if (content is IEnumerable enumerable)
95 {
96 {
97 foreach (object item in enumerable)
98 {
100 }
101 return;
102 }
103 }
104 if (content is XAttribute)
105 {
107 }
108 AddString(XContainer.GetStringValue(content));
109 }
static string Argument_AddAttribute
Definition SR.cs:14
Definition SR.cs:7
void AddString(string s)
Definition Inserter.cs:149
void AddContent(object content)
Definition Inserter.cs:64
void AddNode(XNode n)
Definition Inserter.cs:111

References System.Xml.Linq.Inserter.AddContent(), System.Xml.Linq.Inserter.AddNode(), System.Xml.Linq.Inserter.AddString(), System.SR.Argument_AddAttribute, System.Xml.ArgumentException, System.array, System.Xml.Dictionary, System.Xml.Linq.XContainer.GetStringValue(), System.item, System.other, and System.s.

Referenced by System.Xml.Linq.Inserter.Add(), and System.Xml.Linq.Inserter.AddContent().