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. You even get a free copy of the first edition of ASP.NET Core in Action!
In this post I discuss the ValueStringBuilder type, used internally in .NET as a zero/low-allocation alternative to StringBuilder…
In this post I look at the internal StringBuilderCache type, benchmark it against a StringBuilder, and walk through the code to show how it works.…
In this post we look at the Insert() and Remove() functions, which can involve tricky manipulations of chunks in the middle of the linked list…
In this post I look at StringBuilder.ToString(), show how multiple chunk arrays are converted to a string, and compare it to .NET Framework's approach.…
In this post I look at how StringBuilder appends strings, ints, and doubles efficiently. We also look at how it adds lists with a separator.…
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…
Stay up to the date with the latest posts!