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

◆ ToString()

override string System.Xml.XPath.XPathNavigator.DebuggerDisplayProxy.ToString ( )
inline

Definition at line 65 of file XPathNavigator.cs.

66 {
67 string text = _nav.NodeType.ToString();
68 switch (_nav.NodeType)
69 {
70 case XPathNodeType.Element:
71 text = text + ", Name=\"" + _nav.Name + "\"";
72 break;
73 case XPathNodeType.Attribute:
74 case XPathNodeType.Namespace:
75 case XPathNodeType.ProcessingInstruction:
76 text = text + ", Name=\"" + _nav.Name + "\"";
77 text = text + ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(_nav.Value) + "\"";
78 break;
79 case XPathNodeType.Text:
80 case XPathNodeType.SignificantWhitespace:
81 case XPathNodeType.Whitespace:
82 case XPathNodeType.Comment:
83 text = text + ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(_nav.Value) + "\"";
84 break;
85 }
86 return text;
87 }

References System.Xml.XPath.XPathNavigator.DebuggerDisplayProxy._nav, System.Xml.Dictionary, System.Xml.XmlConvert.EscapeValueForDebuggerDisplay(), System.Xml.XPath.XPathNavigator.NodeType, System.text, and System.Xml.XPath.XPathItem.Value.