site image
Andrew Lock avatar

Andrew Lock

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

    30% off with code ANDREW30 on Dometrain Pro
  3. ASP.NET Core in Action, Third Edition

    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.

  4. Banner image for Disambiguating types with the same name with extern alias

    Disambiguating types with the same name with extern alias

    In this post I describe how to solve Error CS0433, where you have two types with the exact same name and namespace coming from two different packages…

     in  .NET 8C#
  5. Banner image for Adding support for collection expressions to your own types

    Adding support for collection expressions to your own types

    Behind the scenes of collection expressions - Part 5

    In this final post of the series I show how to add support for collection expressions to your own types that don't support them automatically…

     in  C#.NET 8
  6. Banner image for Exploring the generated code: the spread element

    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…

     in  C#.NET 8Source Code Dive
  7. Banner image for Exploring the generated code: T[], Span<T>, and Immutable collections

    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…

     in  C#.NET 8Source Code Dive
  8. Banner image for Exploring the generated code: List<T> and fallback cases

    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…

     in  C#.NET 8Source Code Dive
  9. Banner image for Introducing collection expressions in C#12

    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…

     in  C#.NET 8
Andrew Lock | .Net Escapades
Want an email when
there's new posts?