Latest Posts On Code Maze

ToString Method in C#

ToString Method in C#

Representing data as strings is an inbuilt feature of the C# language and is a common operation in applications. In this article, we are going to learn how we can use the ToString() method in C# through an example. [sc name="github"...

IEnumerable in C#

IEnumerable in C#

In this article, we are going to learn about IEnumerable in C#. IEnumerable acts as an abstraction over a collection and allows us to iterate over it without knowing the actual type of the collection. [sc name="github"...

BitArray in C#

BitArray in C#

In this article, we are going to learn about BitArray class in C#, how to create an instance of it, and what its properties and methods are. We're also going to learn about the difference between BitArray and bool array. [sc name="github"...

Extreme LINQ Performance Boost in .NET 7

Extreme LINQ Performance Boost in .NET 7

.NET 7 has brought us a lot of great new features and improvements, including some pretty excellent LINQ performance improvements. [sc name="github" url="https://github.com/CodeMazeBlog/CodeMazeGuides/tree/main/dotnet-performance/LINQPerformanceImprovementsNET7"...

How to Secure Passwords with BCrypt.NET

How to Secure Passwords with BCrypt.NET

In this article, we are going to learn how to secure passwords with BCrypt.NET to ensure we are up to the industry standards when it comes to security in our .NET environment. [sc name="github"...

Web API Analyzers in ASP.NET Core

Web API Analyzers in ASP.NET Core

In this article, we are going to discuss the Web API Analyzers in ASP.NET Core. Let's get going. What are Web API Analyzers? ASP.NET Core Web API...

Working With Collections in .NET

Working With Collections in .NET

When we develop software applications, we may need to create, store and manipulate groups of related objects. In this article, we will discuss the various ways in which we can perform such operations using different collections in .NET. [sc name="github"...

Nullable Types in C#

Nullable Types in C#

In this article, we will extensively break down the concept of Nullable types in C#. We will discuss the kinds of Nullable types in C#, their characteristics, and how we can use them when building applications. [sc name="github"...

Schedule Jobs With Quartz.NET

Schedule Jobs With Quartz.NET

In this article, we will learn how to schedule jobs with Quartz.NET. Recurring, background tasks are widespread and very common when building applications. These tasks can be long-running or repetitive and we don't want to run them in the foreground, as they could...

Generating Source Code Documentation With DocFx

Generating Source Code Documentation With DocFx

In this article, we are going to discuss the topic of source code documentation. We'll discuss why generating source code documentation is important and how DocFx helps with this task. [sc name="github"...

How to Implement a LinkedList in C#

How to Implement a LinkedList in C#

In this article, we are going to explore the main concepts behind a linked list. We are going to see how to implement a LinkedList in C# using the LinkedList and LinkedListNode classes and then, how to implement custom linked list classes and methods. [sc...

How to Enumerate an Enum in C#

How to Enumerate an Enum in C#

In this article, we're going to look at some of the ways we can enumerate an Enum in C#. Enums allow us to declare a group of related constant values in a readable way where the underlying data type is usually an integer.  [sc name="github"...

Producer-Consumer Applications With .NET Channels

Producer-Consumer Applications With .NET Channels

When building applications, usually we need to create long-running background tasks, that can be sent to one or more background processes. This is known as a producer/consumer pattern. For these scenarios, we need something more robust than a first-in, first-out...

Floating-Point Types in C# – Double vs Float vs Decimal

Floating-Point Types in C# – Double vs Float vs Decimal

In this article, we are going to cover floating-point types in C#. Our focus will be mainly on Double, Float and Decimal data types. We have covered the basic data types extensively, and you can check out this article if you feel the need to brush up on the basics....

Hashing and Salting Passwords in C# – Best Practices

Hashing and Salting Passwords in C# – Best Practices

In a system that stores user credentials, we must pay careful attention to how we store passwords. We must never store passwords in plain text. In this article, we will learn how to use hashing and salting techniques in C# to safely store user passwords. [sc...

C# String Interpolation

C# String Interpolation

Very early in the history of programming, we've seen the need to use text on a machine that works with numbers. Over many decades we devised many different ways to construct and analyze text for better understanding by both humans and machines. String interpolation,...

How to Execute Stored Procedures With EF Core 7

How to Execute Stored Procedures With EF Core 7

In this article, we will see how to use stored procedures in Entity Framework Core 7. Although Entity Framework and LINQ provide a simple way to work with the data, stored procedures still have their place when considering data access and manipulation. [sc...

HashSet vs SortedSet in C#

HashSet vs SortedSet in C#

The HashSet<T> and SortedSet<T> classes in the System.Collections.Generic namespace define two ways of storing and iterating over a collection of objects in C#. Both classes have pros and cons, so which one should we use? This article is going to compare...