Time of Update: 2015-01-25
標籤:最近在進行項目的最佳化。現在部分資料的拷貝時間過長。需要進行上線前的最佳化,嘗試,批次的數量和拷貝次數的之間的合理數值關係。最近項目中使用到了SqlBulkCopy實現批量複製,在這裡,我把部分代碼篩選出來簡單說明一下,希望對大家研究和使用SqlBulkCopy
Time of Update: 2016-10-15
標籤:1 UI 2 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Threading.Tasks; 9 using
Time of Update: 2016-08-15
標籤:CVE-2016-0822-MTK-drivers/misc/mediatek/connectivity/common/combo/linux/wmt_dev.c#1158 //mediatek/kernel/drivers/combo/common/core/include/wmt_lib.htypedef struct { UINT32 dowloadSeq; UCHAR addRess[4]; UCHAR patchName[256
Time of Update: 2016-05-03
標籤:1、經典錯誤之 無法訪問已釋放的對象。 對象名:“System.Net.Sockets.Socket” (1)、問題現場 (2)、問題敘述程式中的某個地方調用到了socket.close後,這個socket還被調用,就出爆出上面錯誤! (3)、解決方案使用下面一句: if (stsend != null && stsend.Connected)stsend != null
Time of Update: 2016-03-30
標籤: 什麼是類的擴充方法擴充方法使您能夠向現有類型“添加”方法,而無需建立新的衍生類別型、重新編譯或以其他方式修改原始類型。MSDNExtension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension
Time of Update: 2015-11-13
標籤: 引用using Ghostscript.NET;using Ghostscript.NET.Rasterizer; 需要安裝 exe檔案 public static GhostscriptVersionInfo _lastInstalledVersion = null; public static GhostscriptRasterizer _rasterizer =
Time of Update: 2015-11-05
標籤:現在有三個控制項並排放置第二個控制項有隱藏功能隱藏後第一個控制項和第三個控制項的距離要縮小,於是就要改變第三個控制項的位置嘗試用Location.X屬性去設定,但是被告知此非變數於是只能另外想辦法 搜到如下解決方案:http://blog.csdn.net/daowzq/article/details/7488332 第一種方法: &
Time of Update: 2015-10-28
標籤:C#Windows服務程式安裝是如何的呢?讓我們開始吧:C#Windows服務程式安裝1、在服務程式的是設計表單中,點擊右鍵“添加安裝程式”,添加服務安裝程式。否則,安裝時會出現如下錯誤:正在安裝程式集“C:\Program\xx.exe”。受影響的參數是:logtoconsole = assemblypath = C:\Program\xx\xx.exe
Time of Update: 2015-08-28
標籤:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Text;using System.Windows.Forms;using System.Security.Cryptography;//加密部分using System.IO;
Time of Update: 2015-07-23
標籤:C#6.0新特性怎麼用系列文章Visual Studio
Time of Update: 2015-07-17
標籤:http://www.cnblogs.com/Mainz/archive/2011/03/10/1980060.html 1: dynamic a = 10; 2: a = a + 10; 3: Console.WriteLine(a.GetType());此段代碼會輸出 System.Int32,第二行不需要類型轉換,因為在運行時識別類型。dynamic 在後台使用 System.Object 類型。但與 object
Time of Update: 2015-03-20
標籤:private void btnFile_Click(object sender, EventArgs e){OpenFileDialog fileDialog = new OpenFileDialog();fileDialog.Multiselect = true;fileDialog.Title = "請選擇檔案";fileDialog.Filter="所有檔案(*.*)|*.*";if (fileDialog.ShowDialog() ==
Time of Update: 2014-10-19
標籤:des http io os ar sp div 2014 on MSDN上面這樣子寫的:[ComVisibleAttribute(false)]public string[]
Time of Update: 2014-06-26
標籤:winform style class blog color strong ListView在View屬性為Details的時候它呈現的方式和DataGirdView差不多,它的每一行都是一個ListViewItem,然而每個ListViewItem都有一個BackColor的屬性,但是設
Time of Update: 2016-11-11
使用的是TcpListener來實現的非同步伺服器代碼伺服器核心代碼 AsyncServer.cs/// /// 非同步SOCKET 伺服器 /// public class AsyncServer : IDisposable { #region Fields /// /// 伺服器程式允許的最大用戶端串連數 /// private int
Time of Update: 2016-11-11
asp.net在伺服器端運行,是不能在伺服器端彈出對話方塊的,但是C#可以通過在頁面輸出JS代碼實現彈出訊息框的效果,這個C#類封裝了常用的訊息框彈出JS代碼,可以在伺服器端調用,在用戶端顯示對話方塊。不但可以顯示JS的警告框,還可以顯示模式視窗,非常方便。using System;using System.Web;using System.Web.UI;using System.Web.UI.WebControls; namespace DotNet.Utilities{ ///
Time of Update: 2016-11-11
這個C#封裝類可以用於將各種格式的資料轉換成JSON格式,包括List轉換成Json,普通集合轉換Json ,DataSet轉換為Json ,Datatable轉換為Json ,DataReader轉換為Json等,如果你需要將對象轉換成JSON,可以使用這個類。using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Reflection;using
Time of Update: 2016-11-24
Bill Chiles(Roslyn編譯器的程式經理)寫了一篇文章《Essential Performance Facts and .NET Framework Tips》,知名博主寒江獨釣對該文進行了摘譯,文中分享了效能最佳化的一些建議和思考,比如不要過早最佳化、好工具很重要、效能的關鍵,在於記憶體配置等,並指出開發人員不要盲目的沒有根據的最佳化,首先定位和尋找到造成產生效能問題的原因點最重要。 全文如下: 本文提供了一些效能最佳化的建議,這些經驗來自於使用Managed 程式碼重寫C#
Time of Update: 2016-11-10
摩爾斯電碼(又譯為摩斯密碼,Morse code)是一種時通時斷的訊號代碼,通過不同的排列順序來表達不同的英文字母、數字和標點符號。它由美國人艾爾菲德·維爾於1837年發明。 摩爾斯電碼是一種早期的數字化通訊形式,但是它不同於現代只使用零和一兩種狀態的二進位代碼,它的程式碼封裝括五種:
Time of Update: 2018-12-05
本人就最近潛心研究的三種語言調用Excel檔案呈現給大家.微軟的Excel在某一些小軟體上確實比較有用處,比如匯出資料做報表但程式設計語言要與應該程式串連,必須涉及到com組件,就offiice2000/office xp/office 2003給大家介紹這幾種com在VB中調Excel2000/xp有一個*.ole檔案,2000是9.0.其他類推,可到了2003就沒了這個嵌入檔案,沒有研究在VB中調用Excel