摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA... 阅读全文
posted @ 2015-12-18 22:55 翻滚吧炒鸡蛋 阅读(309) 评论(0) 推荐(0) 编辑
摘要: params 构造函数声明数组 而不知道数组长度 用的在方法声明中的 params 关键字之后不允许任何其他参数,并且在方法声明中只允许一个 params 关键字。 1 using System; 2 using System.Collections.Generic; 3 using System.... 阅读全文
posted @ 2015-12-18 22:09 翻滚吧炒鸡蛋 阅读(147) 评论(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 ConsoleA... 阅读全文
posted @ 2015-12-18 21:01 翻滚吧炒鸡蛋 阅读(3245) 评论(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 ConsoleA... 阅读全文
posted @ 2015-12-18 19:29 翻滚吧炒鸡蛋 阅读(1317) 评论(0) 推荐(0) 编辑
摘要: 没有ref的方法时: 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-12-18 14:33 翻滚吧炒鸡蛋 阅读(349) 评论(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 ConsoleA... 阅读全文
posted @ 2015-12-18 14:19 翻滚吧炒鸡蛋 阅读(278) 评论(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 ConsoleA... 阅读全文
posted @ 2015-12-18 12:21 翻滚吧炒鸡蛋 阅读(1313) 评论(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 ConsoleA... 阅读全文
posted @ 2015-12-18 11:43 翻滚吧炒鸡蛋 阅读(238) 评论(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 ConsoleA... 阅读全文
posted @ 2015-12-18 11:12 翻滚吧炒鸡蛋 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 本文对c#中(int)、int.Parse()、int.TryParse、Convert.ToInt32的区别进行了较为深入的详细分析,对初学者而言可以起到巩固学习的目的。详情如下:一、(int)变量名[强制类型转换]: 该转换方式主要用于数字类型转换,从int类型到long,float,doubl... 阅读全文
posted @ 2015-12-18 04:07 翻滚吧炒鸡蛋 阅读(158) 评论(0) 推荐(0) 编辑