C# Interview Questions

 Question 1: What is CQRS design pattern? Answer: CQRS is Command Query Responsibility Segregation Pattern. It helps in separating the concerns such as Reads from Writes. Hence you have more…

What Is The Future Of C#?

It has been 16 years since Microsoft publicly announced C# language in 2000. Over the years, C# language has matured and has become one of the most popular and loved…

Develop and Install a Windows Service in C#

What a Windows Service is Enables you to create long-running executable applications that run in their own windows session. Can be automatically started when the computer boots, can be paused…

C# 7 Features – Tuples

In order to return multiple values from a method in C#, we can use approaches like creating out parameters, creating a custom class with the required properties, or using tuples.…

SQL Helper for C#.Net

using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualBasic; using System.Collections; using System.Data; using System.Diagnostics; using System.Data.SqlClient; using System.Xml; using System.Configuration; namespace PeshawarDHASW.Helper { class SQLHelper { #region "private…

Onion Architecture In ASP.NET Core MVC

Introduction The Onion Architecture term was coined by Jeffrey Palermo in 2008. This architecture provides a better way to build applications for better testability, maintainability, and dependability on the infrastructures…

Literal Improvements In C# 7.0

C# 7.0 introduced two literal improvements, a digit separator and a hex literal. Digit Separator The digit separator “_” can be used inside number literals now. The purpose of a…

C# Tutorial – Introduction

In this session 1. We will learn the basic structure of a c# program. The program we used in this video is shown below. // Namespace Declaration using System; class…