Tuple in C# with Example

In this article, we will know about Tuple in C#. What is Tuple? Tuple is a lightweight data structure that may contain different data types. It is introduced in C# 7.0. Syntax to write Tuple Following code snippet is used to create a tuple with 4 elements of different data types. Create method of Tuple … 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

SOLID Principles in C#

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

Factory Design Pattern

In this article, we will understand the Factory Design Pattern with C# code. It is one of the most popular design patterns used in the programming world. There are mainly 3 types of design patterns which are sub-divided into multiple patterns. Factory Design Pattern comes under Creational Pattern and the other 2 are Structural Pattern … Read more

What is AutoMapper in C#?

AutoMapper is used to map data between two objects. In this blog, we will see how to use AutoMapper in our application. Let’s demonstrate the use of Automapper by an example. Suppose we have a class called Employee with 2 properties in it – Name and City class Employee     {         public string Name … Read more

Important ASP.Net interview questions and answers for experienced developer

In this blog, I have collected the most common interview questions and answers based on my¬†personal experience. Below questions asked for Senior Dot Net developer role. 1. What is a Middleware? Middleware is a software used to communicate between 2¬† systems. Middleware also implements code re-usability features. RPC, CORBA, Web Services are few commonly used … Read more

Dependency Injection in C#

In this blog, we will understand Dependency Injection? And, how we can implement Dependency Injection in C#? What is Dependency Injection (DI)? Dependency Injection is a design approach, which helps to create loosely coupled code. In another way, we can say that Dependency Injection is used to remove dependency between two classes and helps to create … Read more

What’s new in C# 6.0 language?

C# 6.0 is an another version of C# programming language released in the year 2015. C# 6 provides numerous new features which helps developer to write C# code in more clean and optimized way. Here are top 8 features of C# 6.0 language No major concepts introduced in C# 6.0. Mainly small features have been added … Read more