Creating Strings with No Allocation Overhead Using String.Create Writing High-Performance C# and .NET Code: Part 4

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. What Does […]

Read More

Demystifying HttpClient Internals: HttpResponseMessage A look at the internals of HttpResponseMessage

In the previous post in my demystifying HttpClient series, I looked at the internals of HttpRequestMessage. I want to continue the series by investigating the HttpResponseMessage. This class is mostly a property holder, with little internal logic but there are a few behaviours and best practices to watch out for. If you’ve read my previous […]

Read More

Demystifying HttpClient Internals: HttpRequestMessage A look at the internals of HttpRequestMessage

Anyone who regularly works with HttpClient will have likely have also used the HttpRequestMessage class. While HttpClient supports some convenience methods for quick actions such as sending a GET request; once you have more complex requirements, such a needing to include headers on the request, you will need to use HttpClient.SendAsync which accepts a HttpRequestMessage. […]

Read More