Creating Strings with No Allocation Overhead Using String.Create

added by DotNetKicks
5/17/2019 11:59:35 AM

1 Kicks, 258 Views

In this post, I'll continue my series about writing high-performance C# and .NET code. This time, I will focus on a new(ish) method available on the String type - String.Create. First introduced in .NET Core 2.1, this method is currently planned for inclusion as part of .NET Standard 2.1 once that is released.