C# foreach Statement With 3 Examples

Quick Reach 1 The C# foreach loop type 2 Syntax of using the foreach statement 3 A C# foreach example with an int array 4 A foreach example with a string array 5 An example of foreach with the list collection 6 Related The C# foreach loop type The foreach is used […]

Ways to use C# ArrayList with 4 demos

In This Tutorial 1 What is the ArrayList? 2 Syntax to initialize an ArrayList 3 An ArrayList example with the Add method 4 ArrayList with mixed items example 5 ArrayList example with foreach 6 C# ArrayList sort method example 7 Related What is the ArrayList? The ArrayList is a class of […]

3 demos to learn C# if .. else and else if

Quick Reach 1 The if statement of C# 2 General structure of C# if 3 An if statement example 4 C# if else statement 4.1 The if else structure 4.2 if else C# example 5 The else if statement 5.1 Structure of else if C# 5.2 Example of using else […]

4 examples to learn C# for loop

Quick Reach 1 The for loop of C# 2 Syntax of C# for loop           3 A for loop in C# example 4 A for loop example with decrement operator example 5 C# continue statement with for loop example 6 C# break statement in the for loop The for loop of […]

Easily Learn C# Array with 7 Examples

Quick Reach 1 What is an Array in C#? 2 How to declare or initialize an array? 3 An int array example 4 C# string array example 5 An array example for accessing specific element 6 An array with for loop example 7 Useful array methods 7.1 The array sort […]

C# switch case statement with examples

Quick Reach 1 The switch statement 2 C# Case 3 Syntax of switch case C# 4 A switch-case example 5 C# switch break 6 The switch default statement 6.1 Switch case with default statement example 7 Switch string example The switch statement The switch statement is a decision-making statement which […]