05 2019 档案

摘要:第一种1.git add --ignore-errors . 特别注意 git add --ignore-errors . errors后面有一个空格再加一个点' .' 第二种: 1.touch .gitignore; 2.添加要省略的文件 .vs/ 阅读全文
posted @ 2019-05-28 00:49 FredGrit 阅读(3627) 评论(0) 推荐(0) 编辑
摘要:static void GenerateMD5ForLargeFiles(string fileName) { StringBuilder stringBuilder = new StringBuilder(); using (Stream readStream = File.OpenRead(fi 阅读全文
posted @ 2019-05-22 00:34 FredGrit 阅读(784) 评论(0) 推荐(0) 编辑
摘要:异步:public void SendAsync(MailMessage message, object userToken); Sends the specified e-mail message to an SMTP server for delivery. This method does n 阅读全文
posted @ 2019-05-22 00:13 FredGrit 阅读(354) 评论(0) 推荐(0) 编辑
摘要:Please download and install Windows Server 2008 R2 Service Pack 1 (KB976932) . https://www.microsoft.com/en-us/download/details.aspx?id=5842 阅读全文
posted @ 2019-05-21 23:04 FredGrit 阅读(399) 评论(0) 推荐(0) 编辑
摘要:https://github.com/Smoothfu/CSharp/tree/SecuritySafeCriticalpublicvoidSetApartmentStateApartmentStatestatesetstheapartmentstateofathreadbeforeitisstar 阅读全文
posted @ 2019-05-19 23:20 FredGrit 阅读(223) 评论(0) 推荐(0) 编辑
摘要:System.Threading.ThreadStateException: 'Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that you 阅读全文
posted @ 2019-05-19 23:17 FredGrit 阅读(293) 评论(0) 推荐(0) 编辑
摘要:static void ADO() { string connString = ConfigurationManager.ConnectionStrings["connString"].ToString(); using (SqlConnection conn = new SqlConnection(connStrin... 阅读全文
posted @ 2019-05-19 21:54 FredGrit 阅读(143) 评论(0) 推荐(0) 编辑
摘要:<DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Setter Property="Background" > <Setter.Value> <Binding Path="SalesOrderDetailID" Converter="{Sta 阅读全文
posted @ 2019-05-12 21:50 FredGrit 阅读(1060) 评论(0) 推荐(0) 编辑
摘要:简化版: 效果如图: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Drawing;using S 阅读全文
posted @ 2019-05-12 14:09 FredGrit 阅读(1358) 评论(0) 推荐(0) 编辑
摘要:负载因子(load factor),它用来衡量哈希表的 空/满 程度,一定程度上也可以体现查询的效率,计算公式为: The ratio of the number of elements in the hash table to the table size iscalled the load fa 阅读全文
posted @ 2019-05-07 21:17 FredGrit 阅读(1558) 评论(0) 推荐(0) 编辑

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