Category: C#
-
Handling Exceptions in ASP.NET Core: A Guide to app.UseExceptionHandler
Exception handling is an essential part of building robust and reliable applications. ASP.NET Core provides developers with various approaches to handle exceptions, each with its own advantages and use cases. In this blog, we discussed how to use the app.UseExceptionHandler middleware, global exception handling, and exception filters to handle exceptions in ASP.NET Core. We also…
-
Pipes and Filters Design Pattern: A Practical Approach
The pipes and filters pattern is a powerful tool for breaking down complex data processing tasks into simple, reusable components. It can help you write maintainable and reusable code that is easy to understand and modify. In this blog post, we have seen how to use the pipes and filters pattern to validate incoming data…
-
How to customize Swagger UI in ASP.NET Web API
Documentation is one of the most important thing to any WEB API. That is going to be the single point of reference for the developers who are going to consume your APIs. An API with bad documentation is never going to get popular among developers. If creating documentation is one tedious process maintaining the documentation is…
-
Common mistakes that C# noobs do
Lets face it! all of us when we initially started programming have done some silly mistakes without understanding the language or a language feature properly. Most of us C# developers learn these mistakes the hard way. And it’s part of the journey of any beginner level developer in their career. But at the same time…
-
A look at C# dynamic type
A brief look at C# dynamic types