How to Solve the Command or File Was Not Found EF Core Error
In this article, we are going to learn how to solve the Command or File Was Not Found EF Core migration error. Let's start. Dotnet EF Not Found Error Before we...
Download Multiple Files From Azure Blob Storage in ASP.NET Core
In this article, we are going to see how we can download multiple files from the Azure Blob Storage using ASP.NET Core. We can say that this article is an appendix to our multiple articles that cover Azure Blob Storage, and we encourage you to read them as well. [sc...
Try-Catch Block in C#
Sometimes our application crashes due to unexpected errors and exceptions that occur during the program execution. So, in this article, we are going to discuss the try-catch block in C# and learn how to handle those exceptions. To download the...
Different Ways to Print The Elements of an Array in C#
In this article, we are going to explore how to print the elements of an array in C#. Also, we are going to compare these approaches to check which are the fastest and the slowest ones. To download the source code for this article, you can visit our...
LINQ to XML
LINQ to XML is an in-memory XML programming interface that provides LINQ functionality to programmers. Like the Document Object Model (DOM), we can use LINQ to XML to load XML documents into memory. However, this way we can process them more efficiently, using the...
Random Class in C#
You might be wondering why would we need the Random Class in C#? One obvious example that comes to mind would be computer games. Whether attempting to simulate the rolling of dice or mimicking a random event, getting the same result every time would clearly not be...
Implementing Passwordless Authentication in ASP.NET Core
In this article, we are going to learn how to implement passwordless authentication in ASP.NET Core Identity. Passwordless authentication is a method of authenticating a software user's identity without requiring a password or any other knowledge-based secret....
Sort List by Property in the Object in .NET
In this article, we are going to look at different ways to sort a List by a property in the object. Let's dive in. Creating a Demo Model Let's begin by creating...
Timer in C#
In this article, we are going to learn how to use Timer in C#. We can set a timer to generate events following a previously set interval. In addition, the Timer class does this without blocking our program's main execution thread. To download the...
How to Deserialize JSON Into Dynamic Object in C#
In this article, we are going to learn how to deserialize JSON into a dynamic object in C#. JSON deserialization in C# refers to the process of forming .NET objects from a JSON string. Most of the time, this means creating strongly-typed POCOs. However, there are...
LINQ Basic Concepts in C#
In this article, we are going to learn about LINQ (Language Integrated Query) in C#. We are going to see why we should use LINQ in our codebase, and different ways to implement and execute LINQ queries. Furthermore, we will explore some of the frequently used LINQ...
How to Convert String to Title Case in C#
In this article, we are going to learn how to convert string to title case in C#. In the title case, the first character of a word is the uppercase letter, while the remaining characters are in lowercase. To download the source code for this...
How to Use ModelState Validation in ASP.NET Core Web API
In this article, we are going to talk about what is ModelState validation, why, and how to use it in ASP.NET Core. We always strive to separate...
Quicksort Algorithm in C#
Quicksort is one of the most efficient algorithms that we can use to accomplish our sorting goals. In this article, we discuss how to implement Quicksort in C# as well as analyze its time and space complexity. To download the source code for this...
Serialization and Deserialization in C#
In this article, we’re going to explore the different flavors of serialization and deserialization in C#. Let’s dive into it. What Is Serialization and...
StringBuilder in C#
In this article, we are going to talk about StringBuilder in C#. Let's dive in. What is StringBuilder in C#? The string type is immutable in C#, so we cannot...
Compare Arrays in C#
There are many different ways to compare arrays in C#. In this article, we are going to cover many of them, check some differences between each approach, and inspect a benchmark result for the fastest technique. To download the source code for this...
Optional Parameters in ASP.NET Core Web API Routing
In this article, we are going to look at how to use optional parameters in ASP.NET Core Web API routing. Additionally, we are going to learn how to use optional parameters with route constraints. To download the source code for this article, you can...
In-Memory Caching in ASP.NET Core
In this article, we are going to talk about the caching basics and how to implement In-Memory Caching in ASP.NET Core applications. Let's start. [sc...
How to Write a JSON Into a File in C#
In this post, we are going to learn how to write a JSON into a file in C#. JSON is structured, lightweight, widely supported, more readable, and more efficient...
Remove Time From a DateTime Object in C#
When we need to work with time in C# we use the DateTime type. DateTime values have two components, as easily inferred from the name - a date part and a time part. Since in some cases we might need only one part out of the two, in this article we're going to learn how...


