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

◆ SetValue()

override void System.Xml.DocumentXPathNavigator.SetValue ( string value)
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 246 of file DocumentXPathNavigator.cs.

247 {
248 if (value == null)
249 {
250 throw new ArgumentNullException("value");
251 }
252 XmlNode source = _source;
253 switch (source.NodeType)
254 {
255 case XmlNodeType.Attribute:
256 if (!((XmlAttribute)source).IsNamespace)
257 {
259 return;
260 }
261 break;
262 case XmlNodeType.Text:
263 case XmlNodeType.CDATA:
264 case XmlNodeType.Whitespace:
265 case XmlNodeType.SignificantWhitespace:
266 {
268 source = _source;
269 XmlNode xmlNode = TextEnd(source);
270 if (source != xmlNode)
271 {
272 if (source.IsReadOnly)
273 {
275 }
277 }
278 goto case XmlNodeType.Element;
279 }
280 case XmlNodeType.Element:
281 case XmlNodeType.ProcessingInstruction:
282 case XmlNodeType.Comment:
284 return;
285 }
287 }
static string Xdom_Node_Modify_ReadOnly
Definition SR.cs:1344
static string Xpn_BadPosition
Definition SR.cs:1316
Definition SR.cs:7
static void DeleteToFollowingSibling(XmlNode node, XmlNode end)

References System.Xml.DocumentXPathNavigator._source, System.Xml.DocumentXPathNavigator.CalibrateText(), System.Xml.DocumentXPathNavigator.DeleteToFollowingSibling(), System.Xml.Dictionary, System.source, System.Xml.DocumentXPathNavigator.TextEnd(), System.value, System.SR.Xdom_Node_Modify_ReadOnly, and System.SR.Xpn_BadPosition.