C# uses using statement to import namespace.
Once a namespace is imported we can use its types with simple name(class name).
using System;
using A.B.C;
namespace A
{
namespace B
{
namespace C
{
class MyClass
{
}
}
}
}
class Program
{
static void Main(string[] args)
{
MyClass cls = new MyClass();
}
}
| w__ww___.___ja___v___a_2_s_._co__m__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |