We can provide an alias for a namespace with = sign.
using System;
using MyAlias = A;
namespace A{
class ClassA{
}
namespace B{
class classB : ClassA{
}
}
}
class Program
{
static void Main(string[] args)
{
new MyAlias.ClassA();
}
}
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |