Novolis.CodeGen.Reflection.ClassDiagram
2026.1.2.50
dotnet add package Novolis.CodeGen.Reflection.ClassDiagram --version 2026.1.2.50
NuGet\Install-Package Novolis.CodeGen.Reflection.ClassDiagram -Version 2026.1.2.50
<PackageReference Include="Novolis.CodeGen.Reflection.ClassDiagram" Version="2026.1.2.50" />
<PackageVersion Include="Novolis.CodeGen.Reflection.ClassDiagram" Version="2026.1.2.50" />
<PackageReference Include="Novolis.CodeGen.Reflection.ClassDiagram" />
paket add Novolis.CodeGen.Reflection.ClassDiagram --version 2026.1.2.50
#r "nuget: Novolis.CodeGen.Reflection.ClassDiagram, 2026.1.2.50"
#:package Novolis.CodeGen.Reflection.ClassDiagram@2026.1.2.50
#addin nuget:?package=Novolis.CodeGen.Reflection.ClassDiagram&version=2026.1.2.50
#tool nuget:?package=Novolis.CodeGen.Reflection.ClassDiagram&version=2026.1.2.50
Novolis.CodeGen.Reflection.ClassDiagram
Build Mermaid classDiagram text from reflected types in an assembly — type names, constructors, and diagram structure for docs and diagnostics.
Install
dotnet add package Novolis.CodeGen.Reflection.ClassDiagram
Prerequisites: .NET 10 SDK (net10.0), Novolis.CodeGen.Reflection (friendly/display name helpers).
Quick start
using System.Reflection;
using Novolis.CodeGen.Reflection.ClassDiagram;
Assembly assembly = typeof(MyService).Assembly;
var diagram = new ClassDiagramBuilder(assembly).Build();
// classDiagram
// class MyService
// MyService()
Output is Mermaid source suitable for Markdown docs or CI-generated diagrams. The legacy Novolis.CodeGen.Reflection.Mermaid namespace is obsolete — use this package instead.
Quick start — interface-driven
IClassDiagramBuilder builder = new ClassDiagramBuilder(assembly);
string mermaid = builder.Build();
API
| Type | Role |
|---|---|
ClassDiagramBuilder |
Build() → Mermaid classDiagram for all assembly types |
IClassDiagramBuilder |
Diagram builder contract |
IDiagramBuilder |
Base Build() diagram contract |
Type and member labels use GetFriendlyName() / GetDisplayName() from Novolis.CodeGen.Reflection.
Support
Pre-release platform library. Diagrams list all public types in the assembly; filter at the call site if needed.
Related
| Package | Role |
|---|---|
Novolis.CodeGen.Reflection |
Friendly and display type names |
Novolis.CodeGen.Reflection.Dump |
Emit C# initialization syntax from runtime objects |
Novolis.CodeGen.Pipeline |
Multi-step codegen pipelines |
More documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Novolis.CodeGen.Reflection (>= 2026.1.2.50)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.1.2.50 | 0 | 10/4/2026 |
| 2026.1.2.49 | 0 | 10/4/2026 |
| 2026.1.2.48 | 41 | 10/1/2026 |
| 2026.1.2.47 | 37 | 9/30/2026 |