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();
}
}
| w__w___w_.___j___a___v_a___2__s.__c__o___m__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |