標籤: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 事件學習{ //定義一個領導類,發布事件 public class leader { //聲明一個委託 public delegate void WorkHandle(string msg);
標籤: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 泛型比較大小{ class Program { //Compare<T>是泛型類,T為型別參數 public class Compare<T> where T :
標籤: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 委託學習{ class Program { static void Main(string[] args) { Program p = new Program();
標籤:1 code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Reflection; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication10 9 {10 class Program11 {12 static
標籤:1 code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Reflection; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication14 9 {10 class Program11 {12 static
標籤:1 code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApplication3 8 { 9 class Test10 {11 //EventHandler在winform中用的多12
標籤: delegate int GetCalculatedValueDelegate(int x, int y); //定義是個委託實際上就是抽象一類 參數列表形式和傳回值相同的函數AddCalculator,SubCalculator這兩個該函數的參數形式和傳回值的類型就是。 static int
標籤:1 刪除的檔案夾 2 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace directory建立一個檔案夾 9 {10 class Program11 {12 static
標籤:1 探測的檔案夾 2 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace ConsoleApplication2 9 {10 class Program11 {12
標籤:1 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8 namespace directory建立一個檔案夾 9 {10 class Program11 {12 static void