Home > Learn C#

C# Conditionals

In C# Conditionals or decision-making statements are used to make a decision based on specific condition and run the desired piece of code. And optionally another set of statements to be executed if given condition is not met. C# provides following different types of conditional statements:if if-else switch statement conditional operatorAll these can

Read More

C# foreach loop

C# foreach loop is another loop, which doesn’t include initialization, condition, increment/decrement characteristics just like other loops. Foreach loop uses a collection of elements and processes them. It evaluates each element of collection individually and returns. No index is required by this loop for processing. Since, with no indexes, loops

Read More