摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace 学习{ class 选择一个目录中所有项目 { /// <summary> /// 统计当前目录和子目录的行数 /// </summary> /// <param name="directory"></param> /// <returns></returns> public stati.. 阅读全文
posted @ 2012-04-18 10:28 xinyebs 阅读(260) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 学习{ class 接口 { } //c#是单继承的,一个类只能从一个父类继承,但接口是多实现的,一个类可以用来实现多个接口 public interface Walkable { void Walk(); } public interface Flayble //定义一个接口 { void Fly();//创建这个接口的方法,但不... 阅读全文
posted @ 2012-04-18 07:38 xinyebs 阅读(159) 评论(0) 推荐(0) 编辑