原创 C#跳過Warning編譯,提高編譯效率
1. #pragma warning disable //需屏蔽警告的源代碼 #pragma warning restore //此方法很好用,缺點就是麻煩了點(可忽略); 2. #pragma warning(disable:4507
原创 string[]轉list
private List<long> ConvetDataType(string sourceData) {
原创 OracleConnection用例
string strSql="insert into table_name(column1_name,column2_name) values(:column1_name,:column2_name)"; using (OracleCo
原创 Informix byte 大對象的寫入
經過兩天的研究與摸索,終於做出來Informix大對象的寫入方法,成功了之後才發現代碼很簡單。 之前試過IBatis、構造sql、OleConnection、SqlConnection、導入DataTable、Update DataRow
原创 CallBack EventHandler
private void TestA(string a, EventHandler<EventArgs> callBack) { if (a == "q") {
原创 Linq加載失敗
今天在做動態編譯的時候,編譯linq老是報錯,錯誤是找不到System.Linq,查了很多資料才知道,linq的dll不是在system中,而是在System.Linq 命名空間處於 System.Core 程序集中(在 System.
原创 Dev GridView行拖拽
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u
原创 從遠程服務器下載文件到本地服務器
public void DownloadFile(string sourceUri, string filePath) {string path = HttpContext.Current.Server.MapPath(filePath)
原创 目的,過程,效率
在生活節奏如此之快的現在社會里,人們都匆匆忙忙的,唯恐一分鐘被浪費掉。 每天晚上躺在牀上感覺到如此的疲憊,但卻又覺得自己整個一天都庸庸碌碌沒有什麼作爲,唯一能讓自己感到輕鬆和欣慰的就是完成了一項又一項任務或者工作。可是更大
原创 OleDB簡單用例
OleDbConnection connection = new OleDbConnection("Provider=Ifxoledbc.2;Use
原创 IO類
System.IO.Path.GetExtension( "文件名 "); ChangeExtension 更改路徑字符串的擴展名。 Combin
原创 aspose 獲取Excel中插入的對象
引入using Aspose.Cells; aspose.cells.dll的下載地址是http://download.csdn.net/detail/keyrainie/4547523 此demo只是講出取Excel插入附件的原理,代碼
原创 使用簡單的Access數據庫
using System; using System.Collections.Generic; using System.Linq; using S
原创 存貯byte[]
using System; using IBM.Data.Informix; using System.Data.OleDb; using Syst
原创 枚舉 轉換
c#枚舉轉化示例大全,數字或字符串轉枚舉,本文重點舉例說明C#枚舉的用法,數字轉化爲枚舉、枚舉轉化爲數字及其枚舉數值的判斷,以下是具體的示例: 先舉兩個簡單的例子,然後再詳細的舉例說明:字符串轉換成枚舉:DayOfWeek week