Chapter 3: Control Flow & Collections
Learning Objectives
After completing this chapter, you should be able to do the following:
- Become familiar with C# Operators
==
,!=
,<
,>
,<=
, and>=
- Write conditionals using:
if
,else
,if/else
statementsswitch
,break
, andcontinue
statements
- Create loops and know when to use them
for
,foreach
,while
, anddo...while
- Know how and when to use list, array, and dictionary collections.
Key Terminology
Throughout this lesson, you will see lots of new vocabulary. Here is everything that you should make note of:
Conditionals
==
!=
<
>
<=
>=
if
else
if else
else if
switch
case
break
default
- fallthrough
Loops
for
loopforeach
loopin
while
loopdo-while
loopcontinue
StringBuilder
Collections
- data structure
List
Dictionary
KeyValuePair
Array