会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
redhairboy
博客园
首页
新随笔
联系
订阅
管理
2018年5月23日
dynamic json
摘要: 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
阅读(396)
评论(0)
推荐(0)
2018年5月20日
c#查找string数组的某一个值的索引
摘要: 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
阅读(23825)
评论(0)
推荐(1)
C#中 删除掉字符串数组中的空字符串
摘要: //使用lambda表达式过滤掉空字符串strArray = strArray.Where(s=>!string.IsNullOrEmpty(s)).ToArray();
阅读全文
posted @ 2018-05-20 10:46 redhairboy
阅读(4673)
评论(0)
推荐(0)
2018年5月11日
c# 比较两个数组每一个值是否相等
摘要: 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
阅读(13393)
评论(0)
推荐(2)
c#比较两个数组的差异
摘要: 例子: 转自:https://www.cnblogs.com/lengzhan/p/6225580.html
阅读全文
posted @ 2018-05-11 08:39 redhairboy
阅读(1572)
评论(0)
推荐(0)
2018年5月10日
C#动态操作DataTable(新增行、列、查询行、列等)
摘要: 转自:http://www.cnblogs.com/vaevvaev/p/6899165.html
阅读全文
posted @ 2018-05-10 10:41 redhairboy
阅读(519)
评论(0)
推荐(0)
C#数字转字母,ASCII码转换
摘要: 字母转换成数字 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
阅读(26193)
评论(0)
推荐(0)
2018年5月9日
c#中使程序跳到指定行中
摘要: 注意只能在函数内部goto,不能goto到其他函数体里面去
阅读全文
posted @ 2018-05-09 21:21 redhairboy
阅读(861)
评论(0)
推荐(0)
C#中ArrayList 与 string、string[]数组 的转换
摘要: 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
阅读(1631)
评论(0)
推荐(0)
2012年7月2日
zend studio 9.0.3 注册码
摘要: zend studio 9.0.3 注册码34E606CF10C3E4CF202ABCEAA9B0B7A64DD2C5862A514B944AAAB38E3EB8A5F2CD735A2AB4CF9B952590EFA62BA0AB2B3E5D99C33C55309EE143165AC7F1817D626574615F3B32312F31312F323031313B392E303B3030313B313B3330
阅读全文
posted @ 2012-07-02 09:29 redhairboy
阅读(302)
评论(0)
推荐(0)
下一页
公告