Search
C# Optimizations That Boosted Our Application's Performance
In the world of software development, performance is often the difference between success and failure. As an experienced developer, I faced a significant challenge when our C# application began to struggle under heavy load. After debugging and optimization, my team and I managed to give a good boost to the application’s performance. In this article, I’ll share some easy key optimizations that made this possible, along with some practical examples and explanations.
Use .http files in Visual Studio to make HTTP requests
If you’re like me tired of switching between your IDE and external tools like Postman to test your APIs? Visual Studio 2022 has a built-in solution that can revolutionize your development workflow direct HTTP request support. This feature allows you to craft and send HTTP requests right from your IDE, making your development and debugging processes more easy.
.NET API Guide: Returning Enum Values as Strings
I was recently asked to return an enum as a string instead of an int from an API call. At first, I considered how to override the framework’s behavior, but after some research, I found the solution was easier than I expected. The easiest way to resolve this is by adding a JsonStringEnumConverter() in the .AddJsonOptions() method of the Startup class:
subscribe via RSS