Skip to content

C-Sharp

C# – Switch Statement

The switch statement can be used instead of if else statement when you want to test a variable against three or more conditions. Here, you will learn about the switch statement and how to use it efficiently in the… Read More »C# – Switch Statement

Inversion of Control

In this chapter, we will learn about IoC and how to implement it. This is the first step towards achieving loose coupled design, as illustrated by the following figure: Inversion of Control (IoC) is a… Read More »Inversion of Control

for loops in C#

Here, you will learn how to execute a statement or code block multiple times using the for loop, structure of the for loop, nested for loops, and how to exit from the for loop. The… Read More »for loops in C#