using CmpDb = Company.InternalClasses.Database.Table;
namespace Company.InternalClasses {
public class DBInterface {
public static void Open() {
System.Console.WriteLine("Opening database");
}
}
// Define a nested namespace within InternalClasses
namespace Database {
public class Table {
public static void Open(string tblName) {
System.Console.WriteLine("Opening table {0}", tblName);
}
}
}
}
public class MainClass {
public static void Main() {
CmpDb.Open("fred");
}
}
|