Beispiel #1
0
        public XmlCodeComment GetValue(CRefPath forMember)
        {
            if (forMember == null || !_isLoaded || forMember.PathType == CRefTypes.Error)
            {
                return(XmlCodeComment.Empty);
            }
            string xpath = $"/doc/members/member[@name='{forMember.ToString()}']/value";

            XmlCodeComment comment = FindCommentWithXPath(xpath);

            return(comment);
        }
Beispiel #2
0
        public string GetXml(CRefPath forMember)
        {
            if (forMember == null || !_isLoaded || forMember.PathType == CRefTypes.Error)
            {
                return(string.Empty);
            }

            string xpath = $"/doc/members/member[@name='{forMember.ToString()}']";

            string  xml        = string.Empty;
            XmlNode commentXml = FindXmlElement(xpath);

            if (commentXml != null)
            {
                xml = commentXml.InnerXml;
            }

            return(xml);
        }