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. What is Benchmarking? Benchmarking is the mechanism of measuring the performance of our code written in an application. In other … Read more

Alias any type in C# 12

Alias any type in C# 12

C# 12 has numerous amazing features. One of the interesting features is Primary Constructors and another interesting feature is the use of aliases of any type and not just named types. What it does mean? It means that now we can create aliases for tuple types, array types, and pointer types. So, in this article, … Read more

IQueryable Vs IEnumerable in C#

IQueryable Vs IEnumerable – 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 only one method: GetEnumerator(). This … Read more

How does Onion Architecture differ from Clean Architecture?

Onion Architecture and Clean Architecture both are used to provide a standard architecture to the software. These architectures play a key role when we build large and complex projects which require regular enhancements.In this article, we will understand Onion architecture and Clean architecture in detail. Also, we will see a basic example of a .Net … 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

RSS
YouTube
YouTube
Instagram