using System;
using Ctr = Counter;
namespace Counter {
class MyClass {
}
}
// Declare another class called CountDown, which
// is in the global namespace.
class MyClass {
}
class GlobalAliasQualifierDemo {
public static void Main() {
Ctr::MyClass m = new Ctr::MyClass();
// Next, create CountDown object from global namespace.
global::MyClass m2 = new global::MyClass();
}
}
|