2015年4月23日

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 阅读(220) 评论(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 阅读(1467) 评论(0) 推荐(0) 编辑

导航