user@runtime:~/blog$ grep -l "csharp-12" posts/*.md

csharp-12

7 posts tagged with csharp-12.

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.

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.

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.

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.

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.

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.

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.