This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

ParsedXmlDoc Pennington.ApiMetadata

Structured representation of a parsed xmldoc comment split into its standard sections.

Properties

Empty ParsedXmlDoc
Shared empty instance used when no xmldoc is available.
Example ImmutableArray<XmlDocNode>
Nodes from the <example> element.
HasExample bool
True when Example contains any nodes.
HasRemarks bool
True when Remarks contains any nodes.
HasReturns bool
True when Returns contains any nodes.
HasSummary bool
True when Summary contains any nodes.
Params ImmutableDictionary<string, ImmutableArray<XmlDocNode>>
Per-parameter nodes keyed by parameter name, from <param> elements.
Remarks ImmutableArray<XmlDocNode>
Nodes from the <remarks> element.
Returns ImmutableArray<XmlDocNode>
Nodes from the <returns> element.
SeeAlso ImmutableArray<string>
Cref values collected from <seealso> elements.
Summary ImmutableArray<XmlDocNode>
Nodes from the <summary> element.
TypeParams ImmutableDictionary<string, ImmutableArray<XmlDocNode>>
Per-type-parameter nodes keyed by name, from <typeparam> elements.

Constructors

ParsedXmlDoc

#
public ParsedXmlDoc(ImmutableArray<XmlDocNode> Summary, ImmutableArray<XmlDocNode> Remarks, ImmutableDictionary<string, ImmutableArray<XmlDocNode>> Params, ImmutableDictionary<string, ImmutableArray<XmlDocNode>> TypeParams, ImmutableArray<XmlDocNode> Returns, ImmutableArray<XmlDocNode> Example, ImmutableArray<string> SeeAlso)

Structured representation of a parsed xmldoc comment split into its standard sections.

Parameters

Summary ImmutableArray<XmlDocNode>
Nodes from the <summary> element.
Remarks ImmutableArray<XmlDocNode>
Nodes from the <remarks> element.
Params ImmutableDictionary<string, ImmutableArray<XmlDocNode>>
Per-parameter nodes keyed by parameter name, from <param> elements.
TypeParams ImmutableDictionary<string, ImmutableArray<XmlDocNode>>
Per-type-parameter nodes keyed by name, from <typeparam> elements.
Returns ImmutableArray<XmlDocNode>
Nodes from the <returns> element.
Example ImmutableArray<XmlDocNode>
Nodes from the <example> element.
SeeAlso ImmutableArray<string>
Cref values collected from <seealso> elements.

Pennington.ApiMetadata.ParsedXmlDoc

namespace Pennington.ApiMetadata;

/// Structured representation of a parsed xmldoc comment split into its standard sections.
public record ParsedXmlDoc
{
    /// Shared empty instance used when no xmldoc is available.
    
public static ParsedXmlDoc Empty { get; }
/// Nodes from the <example> element.
public ImmutableArray<XmlDocNode> Example { get; set; }
/// True when Example contains any nodes.
public bool HasExample { get; }
/// True when Remarks contains any nodes.
public bool HasRemarks { get; }
/// True when Returns contains any nodes.
public bool HasReturns { get; }
/// True when Summary contains any nodes.
public bool HasSummary { get; }
/// Per-parameter nodes keyed by parameter name, from <param> elements.
public ImmutableDictionary<string, ImmutableArray<XmlDocNode>> Params { get; set; }
/// Structured representation of a parsed xmldoc comment split into its standard sections.
public ParsedXmlDoc(ImmutableArray<XmlDocNode> Summary, ImmutableArray<XmlDocNode> Remarks, ImmutableDictionary<string, ImmutableArray<XmlDocNode>> Params, ImmutableDictionary<string, ImmutableArray<XmlDocNode>> TypeParams, ImmutableArray<XmlDocNode> Returns, ImmutableArray<XmlDocNode> Example, ImmutableArray<string> SeeAlso)
; /// Nodes from the <remarks> element.
public ImmutableArray<XmlDocNode> Remarks { get; set; }
/// Nodes from the <returns> element.
public ImmutableArray<XmlDocNode> Returns { get; set; }
/// Cref values collected from <seealso> elements.
public ImmutableArray<string> SeeAlso { get; set; }
/// Nodes from the <summary> element.
public ImmutableArray<XmlDocNode> Summary { get; set; }
/// Per-type-parameter nodes keyed by name, from <typeparam> elements.
public ImmutableDictionary<string, ImmutableArray<XmlDocNode>> TypeParams { get; set; }
}