System.Xml.XPath.XPathNavigator.DebuggerDisplayProxy.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
            public override string ToString()
            {
                string result = _nav.NodeType.ToString();
                switch (_nav.NodeType)
                {
                    case XPathNodeType.Element:
                        result += ", Name=\"" + _nav.Name + '"';
                        break;
                    case XPathNodeType.Attribute:
                    case XPathNodeType.Namespace:
                    case XPathNodeType.ProcessingInstruction:
                        result += ", Name=\"" + _nav.Name + '"';
                        result += ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(_nav.Value) + '"';
                        break;
                    case XPathNodeType.Text:
                    case XPathNodeType.Whitespace:
                    case XPathNodeType.SignificantWhitespace:
                    case XPathNodeType.Comment:
                        result += ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(_nav.Value) + '"';
                        break;
                }
                return result;
            }
        }
XPathNavigator.DebuggerDisplayProxy