Team LiB
Previous Section Next Section

C# Language Basics

For those readers who have never seen C# code before, the rest of this chapter will present an introduction to the basic syntax of the C# programming language. Keep in mind that this is only a taste of C#, enough to help you understand the coding examples in Parts One and Two of this book. We'll revisit C# in substantially more depth in Part Three (Chapters 13 through 16), where we'll delve much more deeply into the language in building a fully functional Student Registration System (SRS) application.


If you haven't taken the time to read the Introduction to this book, now is a good time to do so! The SRS application requirements are introduced as a case study at the end of the Introduction.

A Reminder Regarding "Pseudocode" vs. Real C# Code

As we mentioned in the beginning of this chapter, we occasionally use little bits of pseudocode in our code examples throughout Parts One and Two of the book to hide irrelevant logic details. To make it clear as to when we're using pseudocode vs. real code, we've used italic versus regular SansMono condensed font.

This is real C# syntax:

  for (int i = 0; i <= 10; i++) {

This is pseudocode!

    compute the grade for the ith Student

We'll remind you of this fact a few more times, so that you don't forget and accidentally try to type in and compile pseudocode somewhere along the way.

Team LiB
Previous Section Next Section