O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required