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