Pattern Matching in C#
In this article, we are going to talk about pattern matching in C#. We'll see different patterns in action with simple examples. Let's take a look at...
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...
Code Maze Weekly #127
Issue #127 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# The Best C# .NET Web Application Tech Stack: Choosing The Front End [michaelscodingspot.com] Choosing between the front-end technologies for our applications might be...
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. Do you know what the PathBase property (on HttpRequest) is for and how you can utilize it in your application?...
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. Communicating with Twitter API using the LinqToTwitter library by Khalid Abuhakmeh. Message Ordering in...
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...