Example #1
0
            public static void Parse(SymbolDescriptionProvider provider, ISymbol symbol)
            {
                var rawXml  = "<i>" + symbol.GetDocumentationCommentXml() + "</i>";
                var comment = new XmlDocumentParser(provider, symbol);

                XDocument doc = null;

                try
                {
                    doc = XDocument.Parse(rawXml);
                }
                catch (XmlException)
                {
                    return;
                }

                comment.Parse(doc);
            }
Example #2
0
 private XmlDocumentParser(SymbolDescriptionProvider provider, ISymbol symbol)
 {
     _provider = provider;
     _symbol   = symbol;
 }