Latest Posts On Code Maze

Code Maze Weekly #191

Code Maze Weekly #191

Issue #191 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Create a web API with ASP.NET Core and MongoDB [dotnetthoughts.net] If you like using MongoDB in your project, here's a way to...

How to Read a String From a .resx (Resource) File in C#

How to Read a String From a .resx (Resource) File in C#

In this article, we are going to learn how to read a string from a .resx file. While doing this, we are also going to understand what is going on under the hood. Additionally, we will follow some of the best practices on how to manage resource files, and lastly, offer...

Dynamically Adding Rows on a Form in Razor Pages

Dynamically Adding Rows on a Form in Razor Pages

In this article, we will delve into ASP.NET Core forms and how to add rows to them dynamically. We'll use razor pages to create the form and SQLite as our database. Interested in using Minimal APIs with Razor Views?...

ConcurrentQueue in C#

ConcurrentQueue in C#

In this article, we embark on a journey to explore the depths of the ConcurrentQueue class in C#. We'll delve into its fundamental concepts, its usage, and its role in ensuring thread safety while enabling parallelism. By the end, we'll have a comprehensive...

How to Perform Case-Insensitive Substring Search in C#

How to Perform Case-Insensitive Substring Search in C#

In this article, we will explore the techniques of performing case-insensitive substring search in C#, with the usage of the String.Contains() method, String.IndexOf() method, Regular Expressions, and LINQ in conjunction with String.Equals(). Additionally, we will...

Global Exception Handling for MediatR Requests

Global Exception Handling for MediatR Requests

In this article, we are going to dive into global exception handling within an ASP.NET Core Web API controller using the MediatR library. Particularly, we will focus on the MediatR way of handling exceptions. There is also another way of using Middlewares in ASP.NET...

Refactoring Dispensables in C#

Refactoring Dispensables in C#

In this article, we will explore refactoring dispensables in C#. We'll focus on identifying code smells and enhancing our code through practical refactoring techniques. Modifying response headers in ASP.NET Core is pretty...