The best way to learn C# (pronounced as C sharp) is by practicing and writing a lot of code. This page contains basic level code examples on the essential topics of C#. You can test the code and see the results instantly without writing a single word.
Most of the topics contain YouTube videos to show you a step-by-step coding process. Kindly take the references from these code examples and play with them on your own.
Table of Contents | |
C# switch
Statement
- Read Step-By-Step Article With Images, and Code Examples
- Complete YouTube Video Tutorial
switch
Exampleswitch
Withdefault
Labelswitch
Withenum
Keywordswitch
Withgoto
Keywordswitch
Withreturn
Keywordswitch
Withconst
Keywordswitch
With String Literalsswitch
With Grouped Cases 1switch
With Grouped Cases 2- Nested
switch
Statements
C# while
Loop
C# do-while
Loop
C# for
Loop
- Read Step-By-Step Article With Images, and Code Examples
- Complete YouTube Video Tutorial
for
Loop Example 1for
Loop Example 2for
Loop Variation 1for
Loop Variation 2for
Loop Variation 3for
Loop Variation 4for
Loop Variation 5for
Loop Withbreak
Keywordfor
Loop Withcontinue
Keyword- Infinite
for
Loop - Nested
for
Loops 1 - Nested
for
Loops 2 - Difference Between
for
Loop andwhile
Loop - Array with
for
Loop - List With
for
Loop