摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using _16命名空间.hr;using System.Collections; //如果要使用的类和当前的类不在同一个namespace中,则需要using引用的//using _Person;/* 命名空间 * namespace(命名空间),用于解决类重名问题,可以看做是"类的文件夹" * 在代码中使用其他类的时候需要using类所在的namespace. System.Collections.Arra 阅读全文
posted @ 2012-02-26 13:35 简单--生活 阅读(228) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;/* 常量与静态成员 * const常量,常量名要大写 * 不用new就能用的方法: static方法,static方法其实就是普通的函数 * 在static方法中可以调用其他static方法,字段,属性,但不能调用非static方法,字段,属性,在非static方法可可以调用static的方法,字段 * * */namespace _14常量{ class Program { public const ... 阅读全文
posted @ 2012-02-26 11:13 简单--生活 阅读(207) 评论(0) 推荐(0) 编辑
简单--生活(CSDN)