Latest Posts On Code Maze

Priority Queue in C#

Priority Queue in C#

Priority Queue in C# is a very useful data structure that has so many real-world applications. In this article, we are going to cover the main concepts of Priority Queue in C#. We have covered the basic Queue in C#, it is recommended to check it out before continuing...

Long-Running Tasks in a Monolith ASP.NET Core Application

Long-Running Tasks in a Monolith ASP.NET Core Application

Often we come across scenarios where invoking a Web API endpoint triggers long-running tasks. In this article, we're going to explore the different ways we can implement such a long-running task in an ASP.NET Core Web API. A detailed look into relationship modeling in a DDD Way by Vladimir Khorikov. How to generate absolute...

Insertion Sort in C#

Insertion Sort in C#

We have different sorting algorithms that we can use when we want to sort lists of elements. Insertion sort is one of the simplest algorithms that we can use to achieve our goal. In this article, we learn how insertion sort works, implement the algorithm in C#, and...

JSON Deserialization to a POCO Class in C#

JSON Deserialization to a POCO Class in C#

Deserialization is the process of taking a string representation of an object and creating that object in memory. JSON is an ever-increasingly popular format to serialize objects into. It has become nearly ubiquitous in API communication. In this article, we will take...

Using dotnet format Command to Format the C#/.NET Code

Using dotnet format Command to Format the C#/.NET Code

In this article, we are going to look into a global .NET tool called dotnet format, that helps with code styling in our .NET applications. We'll explore the basic usage, how the role of .editorconfig is important, and how to make the best use of the dotnet format in...

Upload Files With Drag & Drop or Paste in Blazor

Upload Files With Drag & Drop or Paste in Blazor

In this article, we are going to look at how we can upload files to a Blazor Server application using Drag & Drop, as well as Copy/Paste functionality. We will be making use of the JavaScript Interop to invoke JavaScript functions from our C# code. Therefore, we...

Code Maze Weekly #119

Code Maze Weekly #119

Issue #119 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Speed Up Logging in .NET [dotnettips.wordpress.com] Don't we all need faster logging? Check out this piece by David McCarter to learn about the alternative to ILogger....

Download Multiple Files From Azure Blob Storage in ASP.NET Core

Download Multiple Files From Azure Blob Storage in ASP.NET Core

In this article, we are going to see how we can download multiple files from the Azure Blob Storage using ASP.NET Core. We can say that this article is an appendix to our multiple articles that cover Azure Blob Storage, and we encourage you to read them as well. If you need to work with AWS S3 from your .NET projects, here's an article by...

Implementing Passwordless Authentication in ASP.NET Core

Implementing Passwordless Authentication in ASP.NET Core

In this article, we are going to learn how to implement passwordless authentication in ASP.NET Core Identity. Passwordless authentication is a method of authenticating a software user's identity without requiring a password or any other knowledge-based secret....

Sort List by Property in the Object in .NET

Sort List by Property in the Object in .NET

In this article, we are going to look at different ways to sort a List by a property in the object. Let's dive in. Creating a Demo Model Let's begin by creating...

Timer in C#

Timer in C#

In this article, we are going to learn how to use Timer in C#. We can set a timer to generate events following a previously set interval. In addition, the Timer class does this without blocking our program's main execution thread. To download the...

How to Deserialize JSON Into Dynamic Object in C#

How to Deserialize JSON Into Dynamic Object in C#

In this article, we are going to learn how to deserialize JSON into a dynamic object in C#. JSON deserialization in C# refers to the process of forming .NET objects from a JSON string. Most of the time, this means creating strongly-typed POCOs. However, there are...