Code Maze Author

Code Maze

This is the standard author on the site. Most articles are published by individual authors, with their profiles, but when several authors have contributed, we publish collectively as a part of this profile.
Also find me here:



MY ARTICLES:

Hot Reload in ASP.NET Core Applications

In this article, we will dive into what hot reload is and how it revolutionizes our development workflow. We will review its features, origins, examples, and most importantly best practices. Let's start. What is Hot Reload Hot reload stands as a transformative feature...

How to Force Run .NET Application as Administrator

In this article, we will learn how to force run a .NET application as an Administrator. We will do that by modifying the application manifest file of our application to illustrate the whole process. [sc name="github"...

Handling Dates With Noda Time in .NET

Handling dates can be confusing, especially when developing an application with time-sensitive data and users across different time zones. That's where Noda Time comes in. In this article, we will learn about handling dates using Noda Time in .NET and streamline our...

How to Build a Query String for a URL in C#?

In web development, a query string is a crucial URL component that facilitates data exchange between clients and servers. In this article, we will learn how to build a query string for a URL in C#. [sc name="github"...

Strangler Fig Architectural Pattern in C#

In this article, we will discuss the use of the strangler fig architectural pattern. While the design can be applied to any programming language, we will focus on C# here.  [sc name="github"...

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

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. [sc name="github"...

Ignore Null Values With AutoMapper

AutoMapper is a mapping library that helps us to convert one object type to another. While it offers incredible flexibility and convenience, dealing with null values within source objects can sometimes lead to unexpected issues. In this article, we will explore how...

Understanding the Unit of Work Pattern in C#

In this article, we will discover the unit of work pattern, its advantages and disadvantages, and an example implementation that is completely ORM agnostic. Moreover, we will look at the unit of work's connection with the repository pattern and we will see how easy it...

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...

Replace Line Breaks in a String in C#

One common task in text processing is to replace line breaks in a string for various reasons. For instance, we might want to create a single, continuous string without any line breaks to save space or remove unwanted formatting. Alternatively, we might need to change...

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#

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. [sc name="github"...

Selecting Xml Nodes With XPath in C#

In software development, we constantly have to handle different data formats. The XML standard is one of the most used document formats in this context. In this article, we will learn how to use XPath to select data from an XML document, in C#. [sc name="github"...