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