May 2010
Intermediate to advanced
1752 pages
41h 17m
English
C# demands that all program logic be contained within a type definition (recall from Chapter 1 that type is a general term referring to a member of the set {class, interface, structure, enumeration, delegate}). Unlike many other languages, in C# it is not possible to create global functions or global points of data. Rather, all data members and methods must be contained within a type definition. To get the ball rolling, create a new Console Application project named SimpleCSharpApp. You might agree that the code within the initial Program.cs file is rather uneventful.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SimpleCSharpApp
{
class Program { static ...