Latest Posts On Code Maze

Output Caching in ASP.NET Core

Output Caching in ASP.NET Core

In this article, we are going to discuss how to implement Output Caching in ASP.NET. Output Caching is a first-class feature in ASP.NET Core 7. Previously we needed to implement these features ourselves, so it's beneficial that Microsoft has now built this...

Code Maze Weekly #164

Code Maze Weekly #164

Issue #164 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Implementing the Producer-Consumer Pattern with TPL Dataflow [markheath.net] Producer-Consumer is a specialized pattern you've...

How to Exclude Properties From JSON Serialization in C#

How to Exclude Properties From JSON Serialization in C#

In this article, we are going to learn how to exclude properties from JSON serialization using the two most prominent JSON libraries for .NET. The libraries are System.Text.Json, which has been natively available in the framework since .NET Core 3.0, and...

Alternative Way of Logging With OpenTelemetry Logging in .NET

Alternative Way of Logging With OpenTelemetry Logging in .NET

One of the most well-known debugging tools for developers is undoubtedly application logging, which allows us to record timestamped information about the current state of our application. In the OpenTelemetry project, logs are the third and final pillar of...

How to Find the Caller Method in C#

How to Find the Caller Method in C#

In this article, we will learn how to find the caller method in C#. We will also learn about scenarios in which this information could be useful and how to retrieve it.

To download the source code for this article, you can visit our GitHub repository.
Hangfire is a very popular open-source library for performing background...

Different Types of Comments in C# and Should We Use Them

Different Types of Comments in C# and Should We Use Them

In this article, we are going to talk about different types of comments in C#. The compiler will compile any syntactically correct code into an intermediate language, and after that, the .NET runtime will execute this IL code on the client computer. The computer will...

Resolving the Call Is Ambiguous Error While Using LINQ

Resolving the Call Is Ambiguous Error While Using LINQ

In this article, we will learn when the "call is ambiguous" error happens, why the error happens, and how to work around the issue. There are still so many legacy projects using older versions of EF Core, and in those projects, this error can cause a lot of headaches...