2024, Apr 13th

C# Benchmark: StringBuilder vs. GenericList. Which one is the best?

I came across discussions claiming that GenericList might outperform StringBuilder in certain scenarios. Intrigued by this, I decided to conduct a benchmark to clarify the matter and learn more about it. Benchmark setup code Without spending your time, below is the Benchmark setup code. I’ve also uploaded it on GitHub: https://github.com/eliasedc/BenchmarkString YES! Just for fun, I’m also running a test on the native ‘string’ class. […]

2023, Dec 4th

How to Solve 500 – Internal Server Error in C# .NET Framework / .NET Core REST Requests – When Postman Works, But Your Code Falters

In general, a 500 – Internal Server Error isn’t a client-side problem. However, if your requests work on Postman or another API platform for developers, and you don’t have control over the server-side, you may need to adjust your app’s request to make it work as well. Summary 1 – Without further ado, I will demonstrate what resolved a 500 – Internal Server Error that […]