原创 C# Release和debug模式下調試跟蹤程序的原則和方法

取相對路徑:AppDomain.CurrentDomain.BaseDirectory 入門簡介 VS.Net 提供了兩種機制來幫助開發人員診斷和糾正程序中的錯誤.一個是debug類, 另一個是trace類.這兩個類都有了一個assert

原创 C#等待句柄實現異步

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespac

原创 C#動態加載創建程序集

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.CodeDom.Compiler ; u

原创 C#中的Linq 學習 投影、篩選和排序

Select select 在一個集合序列按給定的條件進行投影,select 可以返回組合的篩選結果,返回匿名類型,對返回結果進行操作,返回組合的子查詢結果等等。select 的方法定義原形爲:public static IEnumera

原创 C#中Attribute的應用

Attribute的基本概念 經常有朋友問,Attribute是什麼?它有什麼用?好像沒有這個東東程序也能運行。實際上在.Net中,Attribute是一個非常重要的組成部分,爲了幫助大家理解和掌握Attribute,以及它的使用方法,特

原创 C#多線程的競態問題演示

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics ; using

原创 C#反射小例

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection ; using

原创 C#中LINQ技術的簡單小例

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LINQ技術 { class Pro

原创 C#線程池的使用

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading ; namespa

原创 C#多線程傳送數據

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespac

原创 C#異步委託

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading ; namespa

原创 C#多線程的競態問題解決

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using S

原创 C#多線程的死鎖演示

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics ; using

原创 C#中的Linq技術標準操作符大全

using System; using System.Collections.Generic; using System.Collections ; using System.Linq; using System.Text; name

原创 C#異步回調

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespac