How to Use Multiple Authentication Schemes in .NET
In this article, we are going to learn how to use multiple authentication schemes in .NET. Sometimes our web applications need to have multiple authentication methods. One example can be a Single Page Application (SPA) which uses cookie-based authentication to log in...
Introduction to Regular Expressions in C#
In this article, we will learn the basics of regular expressions in C# and how we can use them in our C# applications. Let's...
Radix Sort in C#
If you're a programmer, you've probably heard of the radix sort. But what is it, exactly? And how can you use it in your code? In this article, we'll take a closer look at the radix sort in C#, learn how to implement it, and analyze its time and space complexity. [sc...
How to Mock the File System for Unit Testing in .NET
In this article, we are going to learn how to mock the file system and unit test a component that interacts with the file system. This last one is a dependency in our application's classes and we can't include it in a unit test. We are going to see that correctly...
Dictionary in C#
In this article, we are going to talk about the Dictionary in C#. We will learn how to create a dictionary, add, retrieve, update, and delete elements. Among that, we will see the usage of its common properties and methods. [sc name="github"...
Vertical Slice Architecture in ASP.NET Core
In this article, we are going to learn about Vertical Slice Architecture in ASP.NET Core and the benefits it provides to make our code more maintainable. We're also going to learn how it differs from traditional architecture and its advantages over the traditional...
Reflection in C#
In this article, we are going to talk about Reflection in C#. Let's start. What is Reflection in C#? In the OOP world, we define the...
Console Class in C#
In this article, we are going to talk about the Console class in C# and inspect the different methods and properties this class contains. The Console...
Global Using Directives in C#
In this article, we are going to learn about Global Using Directives in C#. When we create a console application using .NET 6, the Program.cs class contains a single line of code (not counting the comment): // See https://aka.ms/new-console-template for more...
Stack in C#
In this article, we are going to study Stack in C#, a collection of objects implementing the last-in-first-out method. Let's start. What is Stack...
Long-Running Tasks in a Microservices Architecture
In this article, we are going to demonstrate how the microservices architecture handles a long-running task execution. If you want to recap a similar task execution in a monolithic application, you can refer to this previous article. [sc name="github"...
Bucket Sort in C#
Sorting is one of the most common programming problems that we have to solve. The good news is, that there are many sorting algorithms available to address such problems. However, each algorithm has its strengths and weaknesses, which may influence the choice of...
How to Block IP Addresses in ASP.NET Core Web API
In this article, we are going to learn how to block IP addresses in ASP.NET Core Web API. This demo makes use of the reverse proxy tool ngrok...
Anonymous Types in C#
In this article, we're going to learn about anonymous types in C#. After learning what they are, we're going to learn how to use them in various scenarios through examples. [sc name="github"...
Response Caching in ASP.NET Core
In this article, we are going to discuss how response caching works in ASP.NET Core. Let's get started. What is Response Caching? Response...
Mock Asynchronous Methods Using Moq in C#
In this article, we are going to learn how to mock asynchronous methods using Moq. Moq is an easy-to-use and most popular framework to mock tests using .NET. [sc name="github"...
Remove Duplicates From a C# Array
In this article, we are going to share the different methods on how to remove duplicates from an array in C#. In addition, we are going to compare these methods to check their performance. Arrays contain multiple values of the same type. It’s a common occurrence to...
Validate User Input With Regular Expressions in Blazor WebAssembly
In this article, we are going to learn how to use regular expressions for user input validation in Blazor WebAssembly applications. ...
How to Register Services for Different Environments in .NET
In this article, we are going to learn how to register services for different environments in .NET. Let's start. Reasons to...
How to Create a Comma-Separated String From a List of Strings in C#
In this article, we are going to learn how to create a comma-separated string from a list of strings in C#. Let's dive...



