Performance (ReadOnly)List vs Immutable collection types
Compares performance of C# collection types like List<T>, ReadOnlyCollection<T>, ImmutableArray<T>, and ImmutableList<T> in iteration benchmarks.
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.
Explains the Repository design pattern in C#/.NET, covering its purpose, basic implementation, benefits, and potential drawbacks.
Entity Framework 8 adds native SQL Server support for .NET's DateOnly and TimeOnly types, eliminating the need for custom converters.
Explains C# 'lowering' - how high-level syntax like foreach and async is transformed into simpler constructs by the compiler.
A tutorial on programmatically manipulating SVG graphics using C# and the Svg NuGet package, including loading, modifying, and rendering them.
Explains why deep code nesting is problematic and demonstrates refactoring techniques like extraction and inversion to reduce complexity in C#.
Explains software cohesion as a metric for refactoring, with a C# example showing how to split a low-cohesion class.
Entity Framework 8 introduces raw SQL queries for unmapped types, reducing boilerplate code for developers.
Explains strategies to handle nullable reference type warnings when deserializing JSON into C# object models, comparing different approaches and their trade-offs.
A tutorial on implementing a simple, reusable pagination solution for Entity Framework using a PagedList class and extension method.
A technical guide on implementing a .NET profiler in C#, focusing on mapping COM objects to .NET instances and using UnmanagedCallersOnly.
Explains the misconception that Tasks in C# are for multithreading, clarifying they represent asynchronous operations, not threads, and are not primarily for performance.
Introduces a .NET tips and tricks website and a high-performance ValueStringBuilder project, showcasing low-allocation string building techniques.
Introducing .NET 7's StringSyntaxAttribute to add semantic meaning to string parameters, enabling better IDE support for regex, dates, and formats.