04 2015 档案

里氏转换,arraylist,path,file
摘要:1、里氏转换1)、子类可以赋值给父类2)、如果父类中装的是子类对象,那么可以将这个父类强转为子类对象。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; ... 阅读全文

posted @ 2015-04-24 17:11 liuslayer 阅读(806) 评论(0) 推荐(0) 编辑

关键字new
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _... 阅读全文

posted @ 2015-04-24 15:49 liuslayer 阅读(170) 评论(0) 推荐(0) 编辑

一个继承例子
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _... 阅读全文

posted @ 2015-04-24 15:30 liuslayer 阅读(188) 评论(0) 推荐(0) 编辑

字符串的各种方法
摘要:stringbuilder举例: 1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.Linq; 5 using System.Text; 6 using Sys... 阅读全文

posted @ 2015-04-24 10:30 liuslayer 阅读(209) 评论(0) 推荐(0) 编辑

out参数,ref参数,params参数
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _... 阅读全文

posted @ 2015-04-23 17:17 liuslayer 阅读(222) 评论(0) 推荐(0) 编辑

枚举和int,string类型之间的转换
摘要:public enum QQState { OnLine=1, OffLine, Leave, Busy, QMe }枚举转int:QQState state = QQState.OnLine; //枚举类型默认可以跟int类型互相转换 枚举类型跟int类型是兼容的 int n = (int)sta... 阅读全文

posted @ 2015-04-23 16:21 liuslayer 阅读(1477) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示