摘要:
http://mtoou.info/cipanbeixiebaohu/index.html ①打开运行(快捷键Win+R)→输入regedit后回车 ②找到这个目录:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePo 阅读全文
摘要:
public class DelCmd : ICommand { private readonly Predicate<object> _canExecute; private readonly Action<object> _execute; public event EventHandler C 阅读全文
摘要:
System.Windows.Application is a singleton: its constructor must only be invoked once (including App.xaml de-xamlization), or exception is thrown. 阅读全文
摘要:
1.Install-Package NPOI -v 2.4.0 2. 3.让Excel单元格自适应单元格大小 for(int i=0;i<dt.Columns.Count;i++) { firstSheet.AutoSizeColumn(i); } 最后效果: 阅读全文
摘要:
<system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IGetDataTable" messageEncoding="Text" maxReceivedMessageSize="2147 阅读全文
摘要:
第一种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 阅读全文