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

ApiMember Pennington.ApiMetadata

Single member (property, field, method, constructor, or event) of a documented type, with all display strings pre-formatted by the backend provider.

Properties

DefaultValue string
Formatted default value literal, or null when none is declared.
HasInheritDocDirective bool
Whether the source xmldoc carried an <inheritdoc/> directive; consumers use this to suppress "missing summary" diagnostics when inheritance didn't resolve.
InheritedFromName string
When the member is inherited, the short name of the declaring type for grouping headers (e.g. IContentEmitter). null for directly-declared members.
InheritedFromUid string
When the member is inherited from a base interface (rather than declared on the queried type), the xmldocid of the declaring type. null for directly-declared members.
IsRequired bool
Whether the member carries the required modifier.
Kind MemberKind
The kind of member this record represents.
Name string
Display name of the member (for methods, includes type-parameter list; for constructors, the containing type name).
Parameters ImmutableArray<ApiParameter>
Formatted parameter list for methods/constructors; empty for properties/fields/events.
ReturnTypeDisplay string
Formatted return type for methods that return a value; null otherwise.
SignatureHtml string
Pre-highlighted declaration HTML ready to inject with @((MarkupString)…), or null when no declaration signature is available.
TypeDisplay string
Human-readable type signature (return type for methods, declared type for properties/fields/events).
Uid string
Canonical xmldocid (e.g. M:Namespace.Type.Method(System.Int32)).
Xmldoc ParsedXmlDoc
Parsed xmldoc for the member.

Constructors

ApiMember

#
public ApiMember(string Uid, string Name, MemberKind Kind, string TypeDisplay, string DefaultValue, bool IsRequired, bool HasInheritDocDirective, ParsedXmlDoc Xmldoc, string SignatureHtml, ImmutableArray<ApiParameter> Parameters, string ReturnTypeDisplay, string InheritedFromUid = null, string InheritedFromName = null)

Single member (property, field, method, constructor, or event) of a documented type, with all display strings pre-formatted by the backend provider.

Parameters

Uid string
Canonical xmldocid (e.g. M:Namespace.Type.Method(System.Int32)).
Name string
Display name of the member (for methods, includes type-parameter list; for constructors, the containing type name).
Kind MemberKind
The kind of member this record represents.
TypeDisplay string
Human-readable type signature (return type for methods, declared type for properties/fields/events).
DefaultValue string
Formatted default value literal, or null when none is declared.
IsRequired bool
Whether the member carries the required modifier.
HasInheritDocDirective bool
Whether the source xmldoc carried an <inheritdoc/> directive; consumers use this to suppress "missing summary" diagnostics when inheritance didn't resolve.
Xmldoc ParsedXmlDoc
Parsed xmldoc for the member.
SignatureHtml string
Pre-highlighted declaration HTML ready to inject with @((MarkupString)…), or null when no declaration signature is available.
Parameters ImmutableArray<ApiParameter>
Formatted parameter list for methods/constructors; empty for properties/fields/events.
ReturnTypeDisplay string
Formatted return type for methods that return a value; null otherwise.
InheritedFromUid string
When the member is inherited from a base interface (rather than declared on the queried type), the xmldocid of the declaring type. null for directly-declared members.
InheritedFromName string
When the member is inherited, the short name of the declaring type for grouping headers (e.g. IContentEmitter). null for directly-declared members.

Pennington.ApiMetadata.ApiMember

namespace Pennington.ApiMetadata;

/// Single member (property, field, method, constructor, or event) of a documented type, with all display strings pre-formatted by the backend provider.
public record ApiMember
{
    /// Single member (property, field, method, constructor, or event) of a documented type, with all display strings pre-formatted by the backend provider.
    
public ApiMember(string Uid, string Name, MemberKind Kind, string TypeDisplay, string DefaultValue, bool IsRequired, bool HasInheritDocDirective, ParsedXmlDoc Xmldoc, string SignatureHtml, ImmutableArray<ApiParameter> Parameters, string ReturnTypeDisplay, string InheritedFromUid = null, string InheritedFromName = null)
; /// Formatted default value literal, or null when none is declared.
public string DefaultValue { get; set; }
/// Whether the source xmldoc carried an <inheritdoc/> directive; consumers use this to suppress "missing summary" diagnostics when inheritance didn't resolve.
public bool HasInheritDocDirective { get; set; }
/// When the member is inherited, the short name of the declaring type for grouping headers (e.g. IContentEmitter). null for directly-declared members.
public string InheritedFromName { get; set; }
/// When the member is inherited from a base interface (rather than declared on the queried type), the xmldocid of the declaring type. null for directly-declared members.
public string InheritedFromUid { get; set; }
/// Whether the member carries the required modifier.
public bool IsRequired { get; set; }
/// The kind of member this record represents.
public MemberKind Kind { get; set; }
/// Display name of the member (for methods, includes type-parameter list; for constructors, the containing type name).
public string Name { get; set; }
/// Formatted parameter list for methods/constructors; empty for properties/fields/events.
public ImmutableArray<ApiParameter> Parameters { get; set; }
/// Formatted return type for methods that return a value; null otherwise.
public string ReturnTypeDisplay { get; set; }
/// Pre-highlighted declaration HTML ready to inject with @((MarkupString)…), or null when no declaration signature is available.
public string SignatureHtml { get; set; }
/// Human-readable type signature (return type for methods, declared type for properties/fields/events).
public string TypeDisplay { get; set; }
/// Canonical xmldocid (e.g. M:Namespace.Type.Method(System.Int32)).
public string Uid { get; set; }
/// Parsed xmldoc for the member.
public ParsedXmlDoc Xmldoc { get; set; }
}