Emphasize introduction of WinForms class

Chapter 7: Concluding C# 2: the final features: P195

Created: 5/11/2008
Last updated: 5/11/2008
Severity: Formatting improvement

Listing 7.6 has the WinForms::Button and WebForms::Button in bold, but not the introduction of class WinForms. It's easy to assume that the only changes between listing 7.5 and 7.6 are the changes to alias syntax, at which point it's not clear why you need it. The listing should look like this:

using System;
using WinForms = System.Windows.Forms;
using WebForms = System.Web.UI.WebControls;

class WinForms

class Test
   static void Main()
      Console.WriteLine (typeof (WinForms::Button));
      Console.WriteLine (typeof (WebForms::Button));