集合物件

Collections 說明 常見方法
ArrayList 類似陣列,以索引的方式來依序儲存,無需宣告容量 Add,Remove,Count
Hashtable 使用索引值來存取元素,新增時需要指定KEY值 Count,Keys,Values

Generic Classes

  • 泛型類別— 將型別作為參數,讓同一類別處理不同資料型別的資料

像是模子,給予金屬製作出金屬娃娃;給予塑膠製作出塑膠娃娃;給予玻璃製作出玻璃娃娃。


名詞解釋

MDI

  • Multiple-document Interface (多文件界面)
Form2 f2 = new Form2();
fc.MdiParent = this;
fc.Show();