My new book ASP.NET Core in Action, Second Edition is available now! It supports .NET 5.0, and is available as an eBook or paperback. You even get a free copy of the first edition of ASP.NET Core in Action!
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…
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…
In this post I describe conditional compilation using…
In this post I compare several different ways to call a constructor using reflection, and benchmark them to see which is fastest.…
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 this post I describe how to draw a tree-like directory structure using ASCII art in C#…
Stay up to the date with the latest posts!