/// <inheritdoc /> public override void Apply(XmlDocument document, string key) { if (document == null) { throw new ArgumentNullException(nameof(document)); } if (key == null) { throw new ArgumentNullException(nameof(key)); } // Don't bother if there is nothing to add (conceptual topics, overloads, group, namespace, and // project summary topics). if (key[1] == ':' && key[0] != 'G' && key[0] != 'N' && key[0] != 'R') { XPathNavigator input = document.CreateNavigator().SelectSingleNode(syntaxInput); XPathNavigator output = document.CreateNavigator().SelectSingleNode(syntaxOutput); SyntaxWriter writer = new ManagedSyntaxWriter(output) { RenderReferenceLinks = renderReferenceLinks }; foreach (var generator in generators) { generator.WriteSyntax(input, writer); } } }
/// <inheritdoc /> public override void Apply(XmlDocument document, string key) { // Don't bother if there is nothing to add (conceptual topics, overloads, group, namespace, and // project summary topics). if(key[1] == ':' && key[0] != 'G' && key[0] != 'N' && key[0] != 'R') { XPathNavigator input = document.CreateNavigator().SelectSingleNode(syntaxInput); XPathNavigator output = document.CreateNavigator().SelectSingleNode(syntaxOutput); SyntaxWriter writer = new ManagedSyntaxWriter(output) { RenderReferenceLinks = renderReferenceLinks }; foreach(var generator in generators) generator.WriteSyntax(input, writer); } }