A Brief Source Code Analysis

We will go deeper into the C# syntax and structure in Chapter 3, “A Guided Tour through C#: Part I” but, for now it can be educational to have a quick look through the source code and compare it with the pseudocode provided in Listing 2.2. This listing is the Shakespeare.cs program written in pseudocode and with line numbers corresponding exactly to Listing 2.1. In other words, line 1 of Listing 2.2 briefly explains line 1 of Listing 2.1, line 2 of Listing 2.2 explains line 2 of Listing 2.1, and so on.

Listing 2.2. Pseudocode for the Shakespeare Program
 01: Facilitate use of classes belonging to the System part of the BCL 02: Begin definition of a class called Shakespeare 03: Begin block in which the Shakespeare ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.