site image
Andrew Lock avatar

Andrew Lock

C#
  1. Loading...
  2. Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!

    From Zero to Hero: REST APIs in .NET
  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 The overall design and a first look at the internals

    The overall design and a first look at the internals

    A deep dive on StringBuilder - Part 1

    In this post I take an initial look at the StringBuilder type, show how it's designed, and dive into the source code to see how it works…

  5. Banner image for A deep dive on StringBuilder

    A deep dive on StringBuilder

    In this series I look at the source code behind StringBuilder, show how it is used to reduce allocations, and dig into some internal optimisations…

  6. Banner image for Conditional compilation for ignoring method calls with the ConditionalAttribute

    Conditional compilation for ignoring method calls with the ConditionalAttribute

    In this post I describe conditional compilation using…

     in  .NET Core C#
  7. Banner image for Benchmarking 4 reflection methods for calling a constructor in .NET

    Benchmarking 4 reflection methods for calling a constructor in .NET

    In this post I compare several different ways to call a constructor using reflection, and benchmark them to see which is fastest.…

  8. Banner image for Why is string.GetHashCode() different each time I run my program in .NET Core?

    Why is string.GetHashCode() different each time I run my program in .NET Core?

    In this post I discuss string.GetHashCode(), why it's randomised, and hash-attacks. I also provide a deterministic implementation you can use when it's safe.…

     in  ASP.NET Core .NET Core C#
  9. Banner image for Creating an ASCII-art tree in C#

    Creating an ASCII-art tree in C#

    In this post I describe how to draw a tree-like directory structure using ASCII art in C#…

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