c#学习6,命名空间

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using 命名空间.ir;//如果使用的类不在一个namespace,添加using引用
//同一个文件可以不一样的namespace
namespace 命名空间
{
class Program
{
static void Main(string[] args)
{
// Convert.ToInt32();//using system
person p1 = new person();
命名空间.ir.person p2 = new 命名空间.ir.person();//就像文件夹是全部途径
dog d1 = new dog();
ArrayList list = new ArrayList();
}
}
class person
{

}
}

原文地址:https://www.cnblogs.com/cyychenyijie/p/3733196.html