ApiTypeSummary Pennington.ApiMetadata
Lightweight header describing a documented type, used for listings, slug disambiguation, and cross-link display names.
Properties
Assemblystring- Declaring assembly name without extension.
FullTypeNamestring- Fully-qualified type name (namespace + dot + type name).
KindPennington.ApiMetadata.ApiTypeKind- Category of the type.
Namestring- Short type name without namespace (e.g.
ContentPipeline). Namespacestring- Fully-qualified containing namespace, empty for the global namespace.
Summarystring?- Default:
nullFirst-sentence plain-text summary, ornullwhen no xmldoc summary is available. Uidstring- Canonical xmldocid (e.g.
T:Namespace.TypeName). Normalized to xmldocid form regardless of source backend.
Constructors
.ctor
#public sealed record ApiTypeSummary(
string Uid,
string Name,
string Namespace,
string Assembly,
ApiTypeKind Kind,
string? Summary)
{
/// <summary>Fully-qualified type name (namespace + dot + type name).</summary>
public string FullTypeName =>
string.IsNullOrEmpty(Namespace) ? Name : $"{Namespace}.{Name}";
}Lightweight header describing a documented type, used for listings, slug disambiguation, and cross-link display names.
Parameters
Uidstring- Canonical xmldocid (e.g.
T:Namespace.TypeName). Normalized to xmldocid form regardless of source backend. Namestring- Short type name without namespace (e.g.
ContentPipeline). Namespacestring- Fully-qualified containing namespace, empty for the global namespace.
Assemblystring- Declaring assembly name without extension.
KindApiTypeKind- Category of the type.
Summarystring?- First-sentence plain-text summary, or
nullwhen no xmldoc summary is available.
Pennington.ApiMetadata.ApiTypeSummary
namespace Pennington.ApiMetadata;
/// Lightweight header describing a documented type, used for listings, slug disambiguation, and cross-link display names.
public record ApiTypeSummary
{
/// Lightweight header describing a documented type, used for listings, slug disambiguation, and cross-link display names.
public sealed record ApiTypeSummary(
string Uid,
string Name,
string Namespace,
string Assembly,
ApiTypeKind Kind,
string? Summary)
{
/// <summary>Fully-qualified type name (namespace + dot + type name).</summary>
public string FullTypeName =>
string.IsNullOrEmpty(Namespace) ? Name : $"{Namespace}.{Name}";
}
/// Declaring assembly name without extension.
string Assembly
;
/// Fully-qualified type name (namespace + dot + type name).
public string FullTypeName =>
string.IsNullOrEmpty(Namespace) ? Name : $"{Namespace}.{Name}";
/// Category of the type.
ApiTypeKind Kind
;
/// Short type name without namespace (e.g. ContentPipeline).
string Name
;
/// Fully-qualified containing namespace, empty for the global namespace.
string Namespace
;
/// First-sentence plain-text summary, or null when no xmldoc summary is available.
string? Summary
;
/// Canonical xmldocid (e.g. T:Namespace.TypeName). Normalized to xmldocid form regardless of source backend.
string Uid
;
}