Constructors in C#
In this article, we will discuss Constructors in C# and different types of constructors. More importantly, we will discuss these constructors' differences and use cases. Breadcrumbs is a small but sometimes very useful feature to have in a web application. Let's see how we can...
Running .NET Core Applications as a Windows Service
In this article, we are going to learn how to create a .NET Core Worker Service and run it as a Windows Service. So let's get...
Lambda Expressions in C#
In this article, we're going to learn what Lambda Expressions in C# are in detail. Let's begin. What Are Lambda Expressions? Lambda...
Using Refit to Consume APIs in C#
Consuming APIs over HTTP is a very common scenario when building applications. In this article, we are going to explore Refit to consume APIs in C#. ...
How to Use Span in C# to Improve Application Performance
Performance is always an important factor in software development. It is not something only the developers of a framework must consider. When the .NET team released the Span<> struct they empowered developers to improve application performance, if used...
Ternary Operator ? : in C#
In this article, we are going to learn about the ternary operator (?:) in C#. Let's start. What is a Ternary Operator? Ternary Operator is...
Remove Duplicates From a List in C#
In this article, we will learn the different methods to remove duplicates from a list in C#. List<T> is a collection having elements of the same type <T> which can contain multiple occurrences of the same item. Sometimes, we want that every element is...
ApiController Attribute in ASP.NET Core Web API
In this article, we will learn about the ApiController attribute and the features it brings to our Web API controllers. Let's get...
Counting Sort in C#
Have you ever needed to sort a list of items but didn't want to use a built-in sorting algorithm? If so, you may have considered using the counting sort algorithm. In this article, we'll take a look at how counting sort works and how we can implement it in C#. We'll...
How to Implement Retry Logic in C#
Often, we have transient problems in our application, such as a network failure, system rebooting, or anything else that throws an exception. In this article, we are going to learn how to implement retry logic in C# to help us handle these problems. [sc name="github"...
How to Call Generic Method Using Reflection in C#
In this article, we are going to learn how to call a generic method in C# using reflection. Generic methods are an all-time favorite of...
Method Overloading In C#
In this article, we are going to learn about method overloading in C#. In objected-oriented programming, method overloading is one of the important concepts to understand. It is a type of polymorphism that allows us to define methods that exist in different forms....