随笔分类 -  c#

摘要:hash哈希表简介 这里仅仅是对哈希表作简单概念级介绍(摘自csdn),如果需要,自己去研究。 1、哈希表的概念 哈希表(Hash Table)也叫散列表,是根据关键码值(Key Value)而直接进行访问的数据结构。它通过把关键码值映射到哈希表中的一个位置来访问记录,以加快查找的速度。这个映射函数 阅读全文
posted @ 2016-11-09 10:21 Pavilion 阅读(4520) 评论(1) 推荐(0) 编辑
摘要:if (ds.Tables[0].Rows.Count != 0) { var list = GetJsonString(ds.Tables[0]); jsonStr = "{'jsonStr':'" + list + "','result':'1'}"; } public string GetJs 阅读全文
posted @ 2016-07-08 16:21 Pavilion 阅读(1701) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 服务器端产生客户端脚本的封装类 /// </summary> public class jsHint { public jsHint() { // // TODO: 在此处添加构造函数逻辑 // } /// <summary> /// 弹出提示信息 /// </s 阅读全文
posted @ 2016-07-08 14:26 Pavilion 阅读(382) 评论(0) 推荐(0) 编辑
摘要:一般处理程序代码: XmlDocument xmldoc = new XmlDocument(); xmldoc.AppendChild(xmldoc.CreateXmlDeclaration("1.0", "UTF-8", null)); XmlElement firstElement = xml 阅读全文
posted @ 2016-07-05 14:09 Pavilion 阅读(8351) 评论(2) 推荐(1) 编辑
摘要:private void btnadd_Click(object sender, EventArgs e) { int fileCount = 0; foreach (Control c in this.flowLayoutPanel1.Controls) { i... 阅读全文
posted @ 2016-07-05 10:03 Pavilion 阅读(3021) 评论(1) 推荐(0) 编辑
摘要:private void write_listview(DataSet ds) { DataTable dt = ds.Tables[0]; dataGridView1.DataSource = dt.DefaultView; for (int i = 0; i 0) ... 阅读全文
posted @ 2016-07-05 09:55 Pavilion 阅读(1313) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Di... 阅读全文
posted @ 2016-05-27 15:36 Pavilion 阅读(921) 评论(0) 推荐(0) 编辑
摘要:string err = "Hellod world"; FileStream fs = null; string filePath = HttpContext.Current.Server.MapPath("~/Error.txt"); if (!File.Exists(filePath)) { 阅读全文
posted @ 2016-04-20 17:56 Pavilion 阅读(234) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示