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
DefaultValuestring?- Default:
nullFormatted default value literal, ornullwhen none is declared. HasInheritDocDirectivebool- Default:
falseWhether the source xmldoc carried an<inheritdoc/>directive; consumers use this to suppress "missing summary" diagnostics when inheritance didn't resolve. InheritedFromNamestring?- Default:
nullWhen the member is inherited, the short name of the declaring type for grouping headers (e.g.IContentEmitter).nullfor directly-declared members. InheritedFromUidstring?- Default:
nullWhen the member is inherited from a base interface (rather than declared on the queried type), the xmldocid of the declaring type.nullfor directly-declared members. IsRequiredbool- Default:
falseWhether the member carries therequiredmodifier. KindPennington.ApiMetadata.MemberKind- The kind of member this record represents.
Namestring- Display name of the member (for methods, includes type-parameter list; for constructors, the containing type name).
ParametersSystem.Collections.Immutable.ImmutableArray<Pennington.ApiMetadata.ApiParameter>- Formatted parameter list for methods/constructors; empty for properties/fields/events.
ReturnTypeDisplaystring?- Default:
nullFormatted return type for methods that return a value;nullotherwise. SignatureHtmlstring?- Default:
nullPre-highlighted declaration HTML ready to inject with@((MarkupString)…), ornullwhen no declaration signature is available. TypeDisplaystring- Human-readable type signature (return type for methods, declared type for properties/fields/events).
Uidstring- Canonical xmldocid (e.g.
M:Namespace.Type.Method(System.Int32)). XmldocPennington.ApiMetadata.ParsedXmlDoc- Parsed xmldoc for the member.
Constructors
.ctor
#public sealed record 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
Uidstring- Canonical xmldocid (e.g.
M:Namespace.Type.Method(System.Int32)). Namestring- Display name of the member (for methods, includes type-parameter list; for constructors, the containing type name).
KindMemberKind- The kind of member this record represents.
TypeDisplaystring- Human-readable type signature (return type for methods, declared type for properties/fields/events).
DefaultValuestring?- Formatted default value literal, or
nullwhen none is declared. IsRequiredbool- Whether the member carries the
requiredmodifier. HasInheritDocDirectivebool- Whether the source xmldoc carried an
<inheritdoc/>directive; consumers use this to suppress "missing summary" diagnostics when inheritance didn't resolve. XmldocParsedXmlDoc- Parsed xmldoc for the member.
SignatureHtmlstring?- Pre-highlighted declaration HTML ready to inject with
@((MarkupString)…), ornullwhen no declaration signature is available. ParametersImmutableArray<ApiParameter>- Formatted parameter list for methods/constructors; empty for properties/fields/events.
ReturnTypeDisplaystring?- Formatted return type for methods that return a value;
nullotherwise. InheritedFromUidstring? (optional)- When the member is inherited from a base interface (rather than declared on the queried type), the xmldocid of the declaring type.
nullfor directly-declared members. InheritedFromNamestring? (optional)- When the member is inherited, the short name of the declaring type for grouping headers (e.g.
IContentEmitter).nullfor 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 sealed record 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.
string? DefaultValue
;
/// Whether the source xmldoc carried an <inheritdoc/> directive; consumers use this to suppress "missing summary" diagnostics when inheritance didn't resolve.
bool HasInheritDocDirective
;
/// When the member is inherited, the short name of the declaring type for grouping headers (e.g. IContentEmitter). null for directly-declared members.
string? InheritedFromName = null
;
/// 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.
string? InheritedFromUid = null
;
/// Whether the member carries the required modifier.
bool IsRequired
;
/// The kind of member this record represents.
MemberKind Kind
;
/// Display name of the member (for methods, includes type-parameter list; for constructors, the containing type name).
string Name
;
/// Formatted parameter list for methods/constructors; empty for properties/fields/events.
ImmutableArray<ApiParameter> Parameters
;
/// Formatted return type for methods that return a value; null otherwise.
string? ReturnTypeDisplay
;
/// Pre-highlighted declaration HTML ready to inject with @((MarkupString)…), or null when no declaration signature is available.
string? SignatureHtml
;
/// Human-readable type signature (return type for methods, declared type for properties/fields/events).
string TypeDisplay
;
/// Canonical xmldocid (e.g. M:Namespace.Type.Method(System.Int32)).
string Uid
;
/// Parsed xmldoc for the member.
ParsedXmlDoc Xmldoc
;
}