C# Source Generators: How to get build information?
A tutorial on using C# Source Generators to automatically embed build information like timestamp and configuration into your code during compilation.
A tutorial on using C# Source Generators to automatically embed build information like timestamp and configuration into your code during compilation.
Explains how MongoDB stores DateTime in UTC and how to handle serialization/deserialization with C#, including using DateTimeOffset and custom serializers.
Learn how to use the C# 'is not' operator with exception filtering to write cleaner and more maintainable error handling code.
A tutorial on building a URL shortener service using C#, .NET, and Redis, covering both a forwarding API and a management CLI.
A guide to building a simple, reflection-based object mapper in C#, explaining the core concepts behind libraries like AutoMapper.
Explains the Skip and Take methods in C# LINQ for implementing pagination and limiting query results.
A tutorial on building a custom cron job scheduler in ASP.NET Core using BackgroundService, for educational purposes.
A developer argues for minimal, strategic code commenting, using examples to show how clear naming and structure can often replace verbose comments.
A critical look at benchmarking in .NET, emphasizing the importance of context and real-world performance over isolated micro-optimizations.
Explores the Liskov Substitution Principle using the classic 'Is a square a rectangle?' example in object-oriented programming.
Explains how to use the dotnet CLI's filter switch to run a specific subset of tests from a C# .NET test project, avoiding code modifications.
Explains the Humble Object design pattern for separating hard-to-test dependencies from core logic to improve unit testing in software development.
Learn how to use .NET 6 JSON source generators to optimize serialization and boost performance in ASP.NET Core APIs.
Compares performance of C# collection types like List<T>, ReadOnlyCollection<T>, ImmutableArray<T>, and ImmutableList<T> in iteration benchmarks.
How to embed Git version information like commit hash and tags directly into C# code using the GitInfo source generator library.
Analyzes a performance quirk in C#'s JsonSerializer when creating new JsonSerializerOptions instances, showing significant memory and speed penalties.
Learn how to use C# 11's new Raw String Literals feature to generate TwiML (Twilio Markup Language) for handling SMS and voice calls in an ASP.NET Core application.
A guide to creating fake HTTP endpoints for UI prototyping using ASP.NET Core Minimal APIs and the Bogus library.
Explains what middleware is in ASP.NET Core, its role in the request pipeline, and provides a practical implementation example.
A comprehensive mind map visualizing C# language features from version 1.0 through the upcoming C# 12, with clickable links to examples.