namespace again
namespace:命名空间关键字 again命名名称;
接下来看一下明明空间该如何使用:
定义两个明明空间,分别在里边定义一个方法
namespace one
{
    class first
    {
        public void eat()
        {
            Console.WriteLine("别光记得吃");
        }
    }
}
namespace two
{
    class twos
    {
        public void run()
        {
            Console.WriteLine("吃饱了记得散步");
        }
    }
}
        static void Main(string[] args)
        {
//通过命名空间下的类名调用方法;
            one.first f = new one.first();
            two.twos t = new two.twos();
            f.eat();
            t.run();
}
最终输出语句:
别光记得吃
吃饱了记得散步
原文:http://www.cnblogs.com/qixiaolan/p/7683787.html