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

◆ Insert()

void System.Xml.XmlNamedNodeMap.SmallXmlNodeList.Insert ( int index,
object value )
inline

Definition at line 134 of file XmlNamedNodeMap.cs.

135 {
136 if (_field == null)
137 {
138 if (index != 0)
139 {
140 throw new ArgumentOutOfRangeException("index");
141 }
142 Add(value);
143 return;
144 }
146 {
147 list.Insert(index, value);
148 return;
149 }
150 switch (index)
151 {
152 case 0:
153 {
155 list2.Add(value);
157 _field = list2;
158 break;
159 }
160 case 1:
161 {
164 list2.Add(value);
165 _field = list2;
166 break;
167 }
168 default:
169 throw new ArgumentOutOfRangeException("index");
170 }
171 }
void Add(TKey key, TValue value)

References System.Xml.XmlNamedNodeMap.SmallXmlNodeList._field, System.Add, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Dictionary, System.index, System.list, and System.value.

Referenced by System.Xml.XmlNamedNodeMap.InsertNodeAt().