Ejemplo n.º 1
0
        private void WriteMemberInfoSummary(XElement memberDocElement)
        {
            string summary            = string.Empty;
            IEnumerable <XNode> nodes = memberDocElement?.Element("summary")?.Nodes();

            if (nodes != null)
            {
                foreach (XNode node in nodes)
                {
                    summary += node switch
                    {
                        XText text => Regex.Replace(text.ToString(), "[ ]{2,}", " "),
                        XElement element => this.PrintSummaryXElement(element),
                        _ => null
                    };
                }
            }
            this.document.AppendParagraph(summary);
        }