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

C# Coding Best Practices – Coding Conventions with Examples

C# Coding best practices ensure that your code is consistent, readable, understandable, and maintainable. When it comes to writing quality code, there are the best C# coding standards a developer should follow to make the code cleaner and easy to maintain. There are a few things you should keep in mind while writing C# code. … 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

Onion Architecture Vs Clean Architecture

In this article, we are going to learn about Onion Architecture vs Clean Architecture. These architectures play a key role when we build large and complex projects which require regular enhancements and extensions.Here, we will understand Onion architecture and Clean architecture in detail. Also, we will see a basic example of a .Net Core-based application … Read more

How to create JSON response from a class?

What is JSON? JSON stands for JavaScript Object Notation. It is a lightweight and human-readable data exchange format. Nowadays, most of the data transformation over the web happens in the form of JSON. How to create a JSON string with the C# class? First of all, create a new Web API project in Visual Studio. … 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

5 new features in C# 10

In this article, we will look into 5 new features in C# 10. .NET 6 was released on November 8, 2021, and C# 10 works with .NET 6. C# 10 new features C# 10 introduces below new features. 1. Record Structs The keyword Record was introduced with C# 9. Record is used to define reference … Read more

Understand SOLID Principles in C#

The SOLID principles are a standard software development practice that should be followed in all software applications that use Object-Oriented Programming. They set the norm of how to write a program with clean architecture. SOLID principles in C# help to write code that is easy to test, easy to maintain and easy to extend.  In … Read more

RSS
YouTube
YouTube
Instagram