摘要: http://dynamicjson.codeplex.com/ Project Descriptiondynamic json structure for C# 4.0. Features Intuitive operation by "dynamic". This library is only 阅读全文
posted @ 2018-05-23 07:10 redhairboy 阅读(394) 评论(0) 推荐(0) 编辑
摘要: string[] array = { "A","B","C","D","H"}; var index=array.ToList().IndexOf("D"); 使用IndexOf()方法,返回数组元素在数组中的索引。 index=3; string[] array = { "A","B","C"," 阅读全文
posted @ 2018-05-20 10:47 redhairboy 阅读(23667) 评论(0) 推荐(1) 编辑
摘要: //使用lambda表达式过滤掉空字符串strArray = strArray.Where(s=>!string.IsNullOrEmpty(s)).ToArray(); 阅读全文
posted @ 2018-05-20 10:46 redhairboy 阅读(4613) 评论(0) 推荐(0) 编辑
摘要: int[] a = new int[] { 1, 2, 4, 5 }; int[] b = new int[] { 1, 3, 4, 5 }; if (Enumerable.SequenceEqual(a,b)) { MessageBox.Show("一样"); } Enumerable.SequenceEqual(strs1, strs2); //通过使用相同类型的默认相等比... 阅读全文
posted @ 2018-05-11 09:52 redhairboy 阅读(13304) 评论(0) 推荐(2) 编辑
摘要: 例子: 转自:https://www.cnblogs.com/lengzhan/p/6225580.html 阅读全文
posted @ 2018-05-11 08:39 redhairboy 阅读(1542) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/vaevvaev/p/6899165.html 阅读全文
posted @ 2018-05-10 10:41 redhairboy 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 字母转换成数字 byte[] array = new byte[1]; //定义一组数组array array = System.Text.Encoding.ASCII.GetBytes(string); //string转换的字母 int asciicode = (short)(array[0]) 阅读全文
posted @ 2018-05-10 09:05 redhairboy 阅读(25736) 评论(0) 推荐(0) 编辑
摘要: 注意只能在函数内部goto,不能goto到其他函数体里面去 阅读全文
posted @ 2018-05-09 21:21 redhairboy 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 1、ArrarList 转换为 string[] : ArrayList list = new ArrayList(); list.Add("aaa"); list.Add("bbb"); //转换成数组 string[] arrString = (string[])list.ToArray(typ 阅读全文
posted @ 2018-05-09 21:11 redhairboy 阅读(1587) 评论(0) 推荐(0) 编辑
摘要: zend studio 9.0.3 注册码34E606CF10C3E4CF202ABCEAA9B0B7A64DD2C5862A514B944AAAB38E3EB8A5F2CD735A2AB4CF9B952590EFA62BA0AB2B3E5D99C33C55309EE143165AC7F1817D626574615F3B32312F31312F323031313B392E303B3030313B313B3330 阅读全文
posted @ 2012-07-02 09:29 redhairboy 阅读(287) 评论(0) 推荐(0) 编辑