sunny123456

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 145 146 147 148 149 150 151 152 153 ··· 172 下一页

2021年4月1日

摘要: https://blog.csdn.net/chordwang/article/details/54311033 1.添加一个SetHeaderValue方法: public static void SetHeaderValue(WebHeaderCollection header, string 阅读全文
posted @ 2021-04-01 22:32 sunny123456 阅读(859) 评论(0) 推荐(0) 编辑

摘要: HttpContext.Current.Session.Abandon(); 如果在调用以上代码之后再存储session 在当前上下文之内是可以访问session的.. 但是页面跳转之后..在其他页面是访问不了session及cookie的 那句代码相当于枪毙了当前会话..但是存储session还是 阅读全文
posted @ 2021-04-01 22:29 sunny123456 阅读(257) 评论(0) 推荐(0) 编辑

摘要: //拼接出来的字符串不带多余的 逗号 for (int i=0;i<lista.Count;i++) { if(i!=lista.Count-1) { str+= lista[i]+","; } else { str+= lista[i]; } } //如果 lista 是 数组 可以使用 arra 阅读全文
posted @ 2021-04-01 22:23 sunny123456 阅读(2505) 评论(0) 推荐(0) 编辑

摘要: 也可以添加 Dictionary<string,Dictionary<string,string>> listDict = new Dictionary<strinig,Dictionary<string,string>>(); //一个key对应一个 Dictionary Dictionary<s 阅读全文
posted @ 2021-04-01 22:09 sunny123456 阅读(1700) 评论(0) 推荐(0) 编辑

摘要: https://blog.csdn.net/xueli1991/article/details/76038500 containsKey方法用来判断Map集合对象中是否包含指定的键名。 语法 boolean containsKey(Object key) 返回值:如果Map集合中包含指定的键名,则返 阅读全文
posted @ 2021-04-01 22:03 sunny123456 阅读(1423) 评论(0) 推荐(0) 编辑

摘要: https://www.nhooo.com/note/qa07qq.html 设置一个Hashtable集合,并向其中添加一些元素。Hashtable h = new Hashtable(); h.Add(1, "Sam"); h.Add(2, "Jack"); h.Add(3, "Andy"); 阅读全文
posted @ 2021-04-01 22:01 sunny123456 阅读(479) 评论(0) 推荐(0) 编辑

摘要: https://zhidao.baidu.com/question/681553612286124812.html 如果有类A和类B都继承了类C,类A已经存入到集合中了,那么此时用该方法判断类B,是会返回true还是false? 你的类和List如何定义的? 我测试是返回false,定义如下: pu 阅读全文
posted @ 2021-04-01 22:00 sunny123456 阅读(798) 评论(0) 推荐(0) 编辑

摘要: https://blog.csdn.net/Reforn/article/details/104647551/ //从键值对中查找指定的键 var vara = iniCfg.Key_value.Where(cfgkey => cfgkey.Keys.Contains(strKey)); Dicti 阅读全文
posted @ 2021-04-01 21:53 sunny123456 阅读(1704) 评论(0) 推荐(0) 编辑

摘要: https://zhidao.baidu.com/question/1947307273424417108.html 展开全部 泛型Dictionary<string,string>的用法 泛型最常见的用途是泛型集合,命名空间System.Collections.Generic 中包含了一些基于泛型 阅读全文
posted @ 2021-04-01 21:51 sunny123456 阅读(572) 评论(0) 推荐(0) 编辑

摘要: https://blog.csdn.net/qq_40433102/article/details/83146473?utm_term=c#list%E6%9C%89%E9%87%8D%E5%A4%8D%E6%95%B0%E6%8D%AE&utm_medium=distribute.pc_aggpa 阅读全文
posted @ 2021-04-01 21:39 sunny123456 阅读(136) 评论(0) 推荐(0) 编辑

上一页 1 ··· 145 146 147 148 149 150 151 152 153 ··· 172 下一页