a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
49 lines
706 B
C#
49 lines
706 B
C#
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;
|
|
}
|
|
}
|