Latest Posts On Code Maze

Code Maze Weekly #196

Code Maze Weekly #196

Issue #196 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Redacting sensitive data in logs with Microsoft.Extensions.Compliance.Redaction [andrewlock.net] An important article about the...

Select a Dropdown Option Using Selenium WebDriver in C#

Select a Dropdown Option Using Selenium WebDriver in C#

In this article, we will look at different ways to select a dropdown option using Selenium WebDriver in C#. We will use ASP.NET Core application and xUnit tests to showcase different approaches to our goal.

To download the source code for this article, you can visit our GitHub repository.
LINQ is very powerful but it comes with a price of being hard to debug....

Blazor WebAssembly Ahead of Time Compilation

Blazor WebAssembly Ahead of Time Compilation

In this article, we will explore the concept of ahead-of-time (AOT) compilation in Blazor WebAssembly projects. We'll explain how to enable AOT compilation, how it operates, and when it proves effective. Additionally, we'll look at how it optimizes applications with...

Hexagonal Architectural Pattern in C#

Hexagonal Architectural Pattern in C#

In this article, we are going to describe the hexagonal architectural pattern. We will explain its structure, where it came from, and its advantages and disadvantages. Furthermore, we will demonstrate its implementation in C#. If you want to create a zip file in the cloud on the fly instead of...

How To Read the Request Body in ASP.NET Core Web API

How To Read the Request Body in ASP.NET Core Web API

ASP.NET Core offers a versatile request-response pipeline, allowing seamless customization and intervention. Managing incoming requests to read the request body in an ASP.NET Core Web API application is a common and crucial task. There are multiple methods and...

How to Determine the Operating System in .NET Core

How to Determine the Operating System in .NET Core

In this article, we are going to find out how to determine the operating system of a computer on which our .NET Core application is running. [sc name="github" url="https://github.com/CodeMazeBlog/CodeMazeGuides/tree/main/dotnet-base-libraries/DetermineOperatingSystem"...

How to Check if a File Is in Use With C#

How to Check if a File Is in Use With C#

File manipulation is a common and broad thing in the .NET world and in some cases can lead to certain exceptions. In this article, we will focus on files already in use, and see how we can avoid it.  [sc name="github"...