Summary

In this chapter, we looked at Unary operators, relational operators, shift operators, and equality, conditional, and logical operators, which can be used with one or two operands and evaluated as boolean expressions using logical and conditional operators.

We looked at conditional statements and selective statements, which help us make decisions. Some examples of these are the if condition, then statements, and else statements. Switch...case...default helps match multiple expressions and execute multiple switch labels.

We also looked at iteration statements, which allow users to loop through a collection. When they're used with jump statements such as goto, continue, and so on, they can exit from the loop.

In the next chapter, we will look into delegates and events in detail. Delegates and events play a major role in C# programming. Being able to call back delegates for the base for events allows us to decouple our program. We will also understand Lambda expressions, which can be used to create delegates. These are also called anonymous methods.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.18.218