Benchmarking with BenchmarkDotNet

Benchmarking with BenchmarkDotNet

In this article, we will explore BenchmarkDotNet which is a powerful tool for benchmarking C# code snippets so that we can track the performance of a method we write. So, let’s see this in action. You may like this article: .NET 6, .NET 7 and .NET 8 Performance Comparison What is Benchmarking? Benchmarking is the … Read more

C# 12 : Primary Constructors

Primary Constructor in C#

C# 12 introduces multiple amazing features. But, one of the features which I liked most is the Primary Constructor. What is a Constructor? We are all familiar with the constructor. It is a special method which we use to initialize the object of a class. The Constructor executes as soon as we create the object … Read more

Work with Variables and Data Types in C#

C# variables and data types

In this article, we will explore Variables and Data Types in C#. Before we proceed further, let us first understand what Data is. This article is helpful for beginners or preparing for an Interview as a C# programmer. What is Data? In computer programming, data is one of the most essential parts of any application … Read more

Lambda Expression in C# with Examples

A lambda expression is a short way to describe an anonymous function in C#. The abbreviated syntax of Lambda Expression helps to create Delegates and expressions. So, in this article, we will see Lambda Expression in C# with examples. We can use the lambda function to quickly define a method and then pass it as … Read more

IEnumerable and IQueryable in C#

In this article, we will learn IEnumerable Vs IQueryable. Both IQueryable and IEnumerable are interfaces in .NET that represent a collection of objects. However, they have some important differences in how they work and when to use them. So, let’s begin. What is IEnumerable? IEnumerable lets you iterate through a collection of objects. It contains … Read more

Tuple in C# with Example

Tuple in C#

In this article, we will learn about Tuple in C#. What is a Tuple? A tuple is a reference type lightweight data structure that may contain different data types. It is introduced in C# 7.0. Tuple is useful when we want to store data of different data types without creating a new one. Syntax to … Read more

Dependency Injection in C#

In this blog, we are going to learn about Dependency Injection. And, how we can implement Dependency Injection in C#? We will also learn the ways we can implement Dependency Injection in C#. What is Dependency Injection (DI)? So, let’s first define the Dependency Injection. Dependency Injection is a design approach, which helps programmer to create … Read more

Abstract Class Vs Interface in C#

Abstract Class vs Interface

Abstract Class Vs Interface is one of the most asked questions in an interview. In this article, we will learn what are the main differences between abstract class and interface. And also we will know in which cases abstract classes and interfaces can fit in our project. So, let’s start. Abstract Class in C# In … Read more

RSS
YouTube
YouTube
Instagram