Latest Posts On Code Maze

Understanding PLINQ in .NET

Understanding PLINQ in .NET

In this article, we are going to explore PLINQ, which is the parallel implementation of LINQ. We are going to focus on when, and how to efficiently use it. 

To download the source code for this article, you can visit our GitHub repository.
2022 was an eventful year for the .NET ecosystem. We've got .NET 7, C# 11, NET MAUI, performance...

OpenTelemetry in .NET – Basic Usage With Examples

OpenTelemetry in .NET – Basic Usage With Examples

Being able to debug our applications in an efficient manner is a very important aspect when it comes to designing and building applications. In a world of microservices, it becomes harder and harder to reason about our applications and where the source of a bug or...

ConcurrentBag in C#

ConcurrentBag in C#

In C#, there are many classes that we can use to represent a group of objects that we may manipulate concurrently using multiple threads. One such class is the ConcurrentBag<T>. In this article, we will learn how to add, access, and remove elements from a...

How to Add a BearerToken to an HttpClient Request

How to Add a BearerToken to an HttpClient Request

Often, in our daily routine, we have to deal with secure APIs and use a BearerToken to make HTTP requests. In this article, we are going to learn the correct way to add a BearerToken to an HttpClient request. The Options Pattern...

Different Ways to Use Select Tag Helper in ASP.NET Core

Different Ways to Use Select Tag Helper in ASP.NET Core

In this article, we are going to learn about the select tag helper and its various uses. We are going to start with a brief overview of what exactly tag helpers in ASP.NET Core are and then proceed to learn more about the select tag helper. Step-by-step guide on how to implement the TwoPaneView in .NET...

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