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.
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.
Default Lambda Parameters: Optional Arguments in Anonymous Functions
C# 12 brings default parameter values to lambda expressions, aligning their capabilities with regular methods.
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.
Collection Expressions Deep Dive: Beyond the Basics
A thorough exploration of C# 12 collection expressions, from syntax shortcuts to spread operators and performance considerations.
Primary Constructors in C# 12
How primary constructors reduce boilerplate by letting classes and structs declare constructor parameters directly in the type declaration.
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.