We can use keyword global to reference the root namespace.
namespace N
{
class A
{
static void Main()
{
new A.B();
new global::A.B();
}
public class B { }
}
}
namespace A
{
class B { }
}
| ww___w___.j___a__v_a__2_s__.__c_om__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |