Latest Posts On Code Maze

Code Maze Weekly #120

Code Maze Weekly #120

Issue #120 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Modeling Relationships in a DDD Way [enterprisecraftsmanship.com] 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. [sc...

Try-Catch Block in C#

Try-Catch Block in C#

Sometimes our application crashes due to unexpected errors and exceptions that occur during the program execution. So, in this article, we are going to discuss the try-catch block in C# and learn how to handle those exceptions. To download the...

Different Ways to Print The Elements of an Array in C#

Different Ways to Print The Elements of an Array in C#

In this article, we are going to explore how to print the elements of an array in C#. Also, we are going to compare these approaches to check which are the fastest and the slowest ones. To download the source code for this article, you can visit our...

LINQ to XML

LINQ to XML

LINQ to XML is an in-memory XML programming interface that provides LINQ functionality to programmers. Like the Document Object Model (DOM), we can use LINQ to XML to load XML documents into memory. However, this way we can process them more efficiently, using the...

Random Class in C#

Random Class in C#

You might be wondering why would we need the Random Class in C#? One obvious example that comes to mind would be computer games. Whether attempting to simulate the rolling of dice or mimicking a random event, getting the same result every time would clearly not be...

Code Maze Weekly #118

Code Maze Weekly #118

Issue #118 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Working with AWS S3 using ASP.NET Core – Upload, Download & Delete [codewithmukesh.com] 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...

LINQ Basic Concepts in C#

LINQ Basic Concepts in C#

In this article, we are going to learn about LINQ (Language Integrated Query) in C#. We are going to see why we should use LINQ in our codebase, and different ways to implement and execute LINQ queries. Furthermore, we will explore some of the frequently used LINQ...

How to Convert String to Title Case in C#

How to Convert String to Title Case in C#

In this article, we are going to learn how to convert string to title case in C#. In the title case, the first character of a word is the uppercase letter, while the remaining characters are in lowercase. To download the source code for this...

Code Maze Weekly #117

Code Maze Weekly #117

Issue #117 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Search videos through the YouTube Data API from C# [blog.elmah.io] If you need to implement YouTube search results on a website, this article by Thomas Ardal is just for...