$ show dotnet/docs
This repository serves as the primary source for .NET documentation (learn.microsoft.com/dotnet). It contains conceptual guides, API references, and runnable code samples demonstrating .NET language features, frameworks, and best practices. The repository is not a single application but a curated collection of educational materials organized by technology domain (e.g., C#, ASP.NET Core, Orleans, AI). Code samples illustrate patterns like dependency injection, logging, serialization, and data access, often with minimal, self-contained examples. Maintenance is active via GitHub Actions workflows for linting, dependency updates, and version sweeping, ensuring content stays current with .NET releases.
The LLM identified 3 files worth highlighting for reuse:
Demonstrates a bulk insert pattern for SQLite using transactions and reused command objects to maximize insertion throughput. This isolated solution addresses a recurring data engineering problem (efficient batch inserts) and can be extracted with minimal adaptation to any ADO.NET-based data ingestion scenario.
Shows advanced logging implementation using C# source generators (LoggerMessage) to create strongly-typed, high-performance log messages. This pattern eliminates runtime string formatting costs and is reusable across any .NET application requiring efficient logging infrastructure.
Provides a custom JsonConverter that infers target types during deserialization based on JSON payload discriminators. This solves a common data integration challenge (handling polymorphic JSON) and represents a reusable, framework-agnostic pattern for flexible data binding in serialization pipelines.