Posts

Page 14 of 15

user@runtime:~/blog$ ls -la posts/ --sort=date
csharp 2025-07-29 4m

Params Collections: Beyond Arrays with params

C# 13 extends the params keyword to work with any collection type including spans, lists, and custom collections.

csharp 2025-07-25 4m

Inline Arrays: Fixed-Size Buffers Without Unsafe Code

C# 12 inline arrays embed fixed-size buffers directly in structs, enabling stack-allocated collections without unsafe blocks.

aspnet-core 2025-07-25 4m

Model Binding and Validation in ASP.NET Core

Learn how ASP.NET Core automatically maps request data to action parameters and validates input using data annotations.

csharp 2025-07-22 4m

Ref Readonly Parameters: Passing by Reference Without the Pitfalls

C# 12's ref readonly parameters offer a safe middle ground between in parameters and ref parameters for high-performance code.

aspnet-core 2025-07-22 4m

Endpoint Routing in ASP.NET Core

Understand how ASP.NET Core's endpoint routing system matches requests to handlers and how to configure it effectively.

aspnet-core 2025-07-18 4m

Request Pipeline Short-Circuiting in ASP.NET Core

Learn how to short-circuit the ASP.NET Core request pipeline to return early responses and improve performance.

csharp 2025-07-18 4m

Default Lambda Parameters: Optional Arguments in Anonymous Functions

C# 12 brings default parameter values to lambda expressions, aligning their capabilities with regular methods.

csharp 2025-07-15 4m

Alias Any Type: Using Directives Beyond Namespaces

C# 12 extends using aliases to support any type including tuples, arrays, pointers, and generics — not just named types.

aspnet-core 2025-07-15 3m

Health Checks in ASP.NET Core

Implement health checks to monitor your ASP.NET Core application's dependencies and readiness for traffic.

csharp 2025-07-14 5m

Static Abstract Interface Members in C#

How static abstract interface members enable generic math, factory patterns, and type-level contracts in C# 11 and beyond.

csharp 2025-07-11 4m

Generic Math: Writing Numeric Algorithms That Work Across Types

C# 11's generic math interfaces let you write a single algorithm that works with int, double, decimal, and any other numeric type.

aspnet-core 2025-07-11 4m

Structured Logging with ILogger in ASP.NET Core

Use ASP.NET Core's built-in ILogger abstraction effectively with structured logging, log levels, and filtering.

csharp 2025-07-10 4m

Raw String Literals in C# 11

How raw string literals eliminate escaping headaches for JSON, XML, SQL, regex, and any text containing special characters.

csharp 2025-07-08 4m

UTF-8 String Literals: Zero-Allocation Text for High-Performance Code

C# 11's UTF-8 string literals let you work with byte-based text representations without runtime encoding costs.

aspnet-core 2025-07-08 4m

Configuration and the Options Pattern in ASP.NET Core

Master ASP.NET Core's layered configuration system and the Options pattern for strongly-typed settings.

csharp 2025-07-07 4m

Generics Constraints in C#: Writing Precise Generic Code

How generic constraints let you write flexible, reusable code while maintaining type safety and access to specific members.

aspnet-core 2025-07-04 4m

Dependency Injection Lifetimes in ASP.NET Core

Learn the differences between transient, scoped, and singleton service lifetimes and when to use each one.

csharp 2025-07-04 4m

Required Members: Compile-Time Guarantees for Object Initialisation

How C# 11's required members enforce that callers set essential properties, closing a long-standing gap in object initialiser safety.

csharp 2025-07-03 4m

Using Declarations and Disposable Patterns in C#

A practical guide to resource management in C#, from using declarations to implementing IDisposable and IAsyncDisposable correctly.

aspnet-core 2025-07-01 3m

The ASP.NET Core Middleware Pipeline Explained

Understand how the ASP.NET Core middleware pipeline processes requests and responses through a chain of delegates.

csharp 2025-07-01 4m

Collection Expressions Deep Dive: Beyond the Basics

A thorough exploration of C# 12 collection expressions, from syntax shortcuts to spread operators and performance considerations.

csharp 2025-06-30 4m

Ref Structs in C#: Stack-Only Types for High Performance

Understanding ref structs, the stack-only value types that power Span<T> and enable zero-allocation programming in C#.

csharp 2025-06-26 4m

Primary Constructors in C# 12

How primary constructors reduce boilerplate by letting classes and structs declare constructor parameters directly in the type declaration.

csharp 2025-06-23 4m

Switch Expressions: Concise Branching in C#

How switch expressions replace verbose switch statements with concise, expression-based branching that returns values directly.

csharp 2025-06-19 4m

Collection Expressions in C# 12

How C# 12 collection expressions unify collection initialisation with a concise, consistent syntax that works across arrays, lists, spans, and custom types.