- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Exploring the generated code: the spread element
Behind the scenes of collection expressions - Part 4
In this post I show what the compiler generates when you use collection expressions with the spread element and how it depends on the collections used…
![Banner image for Exploring the generated code: T[], Span<T>, and Immutable collections](/content/images/2024/collection_expressions_banner_3.png)
Exploring the generated code: T[], Span<T>, and Immutable collections
Behind the scenes of collection expressions - Part 3
In this post I look at the code generated when you use collection expressions with T[], ReadOnlySpan<T>, Span<T>, and immutable collections…

Exploring the generated code: List<T> and fallback cases
Behind the scenes of collection expressions - Part 2
In this post I look at the code generated when you use collection expressions with List<T> or with types that can be used with collection initializers…

Introducing collection expressions in C#12
Behind the scenes of collection expressions - Part 1
In this post I introduce C#12 collection expressions, discuss the benefits of the unified syntax for refactoring, and show how to use the spread element…

Behind the scenes of collection expressions
In this series I look in detail at the C#12 feature collection expressions. I show how to use them, the code they generate, and ways to enhance your own types…

Creating a .NET AsciiMath parser and using it in a Markdig extension
In this post I describe how I ported a Ruby AsciiMath implementation to .NET, created the AsciiMath NuGet package, and used it to create a Markdig extension…

