Code Editor
Time to take a look at the center of our development activities: writing code. Switch back to Program.cs and take a look at the skeleton code that has been provided:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Hello{ class Program { static void Main(string[] args) { } }}
There are a few differences with the code we started from when writing our little console application manually.
First of all, more namespaces with commonly used types have been imported by means of using directives. Second, a namespace declaration is generated to contain the Program
class. We’ll talk about namespaces in more detail in the next chapters, so don’t worry about this for now. ...
Get C# 4.0 Unleashed 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.