随笔分类 -  Net(C#)开发

上一页 1 2
Winform 获取相对路径 C#
摘要:///获取相对路径///例如:System.Windows.Forms.Application.StartupPath = "E:\App\CheckingMachine\QueryMachine\bin\Debug"///经过以下处理将返回"E:\App\CheckingMachine\Query... 阅读全文
posted @ 2015-07-22 16:34 软件开发学习分享 阅读(281) 评论(0) 推荐(0)
Tuple<int, int> Dictionary<string, object>妙用
摘要:Tuple Dictionary妙用 阅读全文
posted @ 2015-07-14 15:59 软件开发学习分享 阅读(418) 评论(0) 推荐(0)
C#导出EXCEL(DataTable导出EXCEL)
摘要:using System; using System.Collections.Generic; using System.Text; using System.Data; using System.IO; using System.Web; using Microsoft.Office.Intero... 阅读全文
posted @ 2015-06-29 09:43 软件开发学习分享 阅读(401) 评论(0) 推荐(0)
private SortedDictionary<string, object> Dic_values = new SortedDictionary<string, object>();
摘要:private SortedDictionary Dic_values = new SortedDictionary(); 阅读全文
posted @ 2015-06-26 14:18 软件开发学习分享 阅读(242) 评论(0) 推荐(0)
SortedDictionary<TKey, TValue> 类 表示根据键进行排序的键/值对的集合。
摘要:SortedDictionary 类 表示根据键进行排序的键/值对的集合。SortedDictionary 中的每个键必须是唯一的。 键不能为 null,但是如果值类型 TValue 为引用类型,该值则可以为空。SortedDictionary 可对未排序的数据执行更快的插入和移除操作. 阅读全文
posted @ 2015-06-25 09:42 软件开发学习分享 阅读(196) 评论(0) 推荐(0)
finally不管有没有错都会运行 finally 块用于清除 try 块中分配的任何资源,以及运行任何即使在发生异常时也必须执行的代码
摘要:finally 块用于清除 try 块中分配的任何资源,以及运行任何即使在发生异常时也必须执行的代码 阅读全文
posted @ 2015-06-24 15:27 软件开发学习分享 阅读(381) 评论(0) 推荐(0)
HttpWebRequest使用证书请求
摘要:HttpWebRequest使用证书请求//是否使用证书 if (isUseCert) { string path = HttpContext.Current.Request.PhysicalApplicationPath; X509Certificate2 cert = new X509Certi... 阅读全文
posted @ 2015-06-24 15:19 软件开发学习分享 阅读(1816) 评论(1) 推荐(1)
string StartsWith 方法 Https
摘要:public ActionResult Index() { string url = "Https://www.baodu.com"; bool isOK = false; if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase)... 阅读全文
posted @ 2015-06-24 15:14 软件开发学习分享 阅读(647) 评论(0) 推荐(1)
设置https验证方式
摘要:if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase)) 阅读全文
posted @ 2015-06-24 15:03 软件开发学习分享 阅读(219) 评论(0) 推荐(0)

上一页 1 2