|
Listing 9-14 extracted from chapter Fundamental concepts of the language
Listing 9-13< > Listing 9-15
This listing can be compiled with the command line: csc.exe /target:exe Example_9_14.cs Errors: 2 Warnings: 0
Example_9_14.cs
using System;
class Program {
class System { }
const int Console = 691;
static void Main() {
// KO: The compiler attemps to acces Program.Console.
Console.WriteLine("Hello 1");
// KO: The compiler attemps to acces Program.System.
Console.WriteLine("Hello 2");
}
}
Copyright Patrick Smacchia 2006 2007
|