1 using c = System.Console;
2 using s = System;
3 using System2 = System;
4 
5 namespace A {
6 	namespace B {
7 		class C {
Hola()8 			public static void Hola () {
9 				c.WriteLine ("Hola!");
10 			}
11 		}
12 	}
13 }
14 
15 namespace X {
16 	namespace Y {
17 		namespace Z {
18 			class W {
Ahoj()19 				public static void Ahoj () {
20 					s.Console.WriteLine ("Ahoj!");
21 				}
22 			}
23 		}
24 	}
25 }
26 
27 namespace Foo {
28 
29   // Trick: this class is called System.  but we are going to use the using alias to
30   // reference the real system.
31   class System {
X()32 	static void X() {
33 	  System2.Console.WriteLine("FOO");
34 	}
35   }
36 }
37 
38 class App {
Main()39 	public static int Main () {
40 		A.B.C.Hola ();
41 		X.Y.Z.W.Ahoj ();
42 
43 		// Array declaration
44 		System2.Net.IPAddress[] addresses2;
45 
46 		return 0;
47 	}
48 }
49