Using the alias keyword to refer to a nested namespace
//
using CmpDb = YourCompany.SecondPartNamespace.InnerNamespace.YourClass;
namespace YourCompany.SecondPartNamespace {
namespace InnerNamespace {
public class YourClass {
public static void Open( string tblName ) {
System.Console.WriteLine("{0}", tblName );
}
}
}
}
public class CH1_14 {
public static void Main() {
CmpDb.Open("fred");
}
}
Related examples in the same category