05 2015 档案

多态、接口
摘要:1、c#中的访问修饰符public :公开的公共的private:私有的,只能在当前类的内部访问protected:受保护的,只能在当前类的内部以及该类的子类中访问。internal:只能在当前项目中访问。在同一个项目中,internal和public的权限是一样。protected interna... 阅读全文

posted @ 2015-05-05 13:36 liuslayer 阅读(270) 评论(0) 推荐(0)

多态、抽象类示例
摘要:1、一个多态例子 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 nam... 阅读全文

posted @ 2015-05-04 11:39 liuslayer 阅读(263) 评论(0) 推荐(0)

文件流
摘要:1、使用filestream读写数据 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Thr... 阅读全文

posted @ 2015-05-04 10:37 liuslayer 阅读(177) 评论(0) 推荐(0)

List泛型集合、装箱和拆箱、Dictionary
摘要:1、List泛型集合 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespac... 阅读全文

posted @ 2015-05-04 10:14 liuslayer 阅读(738) 评论(0) 推荐(0)

导航