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)
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)
SortedDictionary<TKey, TValue> 类 表示根据键进行排序的键/值对的集合。
摘要:SortedDictionary 类 表示根据键进行排序的键/值对的集合。SortedDictionary 中的每个键必须是唯一的。 键不能为 null,但是如果值类型 TValue 为引用类型,该值则可以为空。SortedDictionary 可对未排序的数据执行更快的插入和移除操作.
阅读全文
posted @
2015-06-25 09:42
软件开发学习分享
阅读(196)
推荐(0)
finally不管有没有错都会运行 finally 块用于清除 try 块中分配的任何资源,以及运行任何即使在发生异常时也必须执行的代码
摘要:finally 块用于清除 try 块中分配的任何资源,以及运行任何即使在发生异常时也必须执行的代码
阅读全文
posted @
2015-06-24 15:27
软件开发学习分享
阅读(381)
推荐(0)
HttpWebRequest使用证书请求
摘要:HttpWebRequest使用证书请求//是否使用证书 if (isUseCert) { string path = HttpContext.Current.Request.PhysicalApplicationPath; X509Certificate2 cert = new X509Certi...
阅读全文
posted @
2015-06-24 15:19
软件开发学习分享
阅读(1816)
推荐(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)
推荐(1)
设置https验证方式
摘要:if (url.StartsWith("https", StringComparison.OrdinalIgnoreCase))
阅读全文
posted @
2015-06-24 15:03
软件开发学习分享
阅读(219)
推荐(0)