20110515 學習記錄

2022-02-14 12:03:08 字數 527 閱讀 4762

泛型

命名空間: system.collections.generic; 

和system.collections.objectmodel

對應的 集合 system.collections;

區別:集合是弱型別,新增元素都要裝箱,因此讀取的時候需要拆箱,效率低下。

介面:icollection

ilist

ienumerable

ienumerator

idictionary

icomparer

iequalitycomparer

類:list

dictionary

sortedlist,

linkedlist

queue

stack

system.collections.objectmodel 命名空間下

;collection

readonlycollection

keyedcollection

委託類似匿名表示式。

mysql學習記錄 MySQL學習記錄 2

in 子查詢 select from student where id in 1,2 not in 不在其中 select from student where id not in 1,2 is null 是空 select from student where age is null is not...

java學習記錄

陣列雖然是引用資料型別,但它不是類 所以數字中沒有length 方法 只有length屬性。string型別 是乙個類 jdk中已經封裝好的類,是個final類,你可以去查api 類就有屬性和方法但是 string類中沒有length屬性,只有length 方法 1。陣列雖然是引用資料型別,但它不是...

Linux 學習記錄

1.linux 拷貝隱藏檔案 進入當前需要拷貝的目錄,即源目錄 假如 source 拷貝到 centos5.3 cd source tar cf cd centos5.3 tar xvf 或者 cp r centos5.3 2.linux 下新增postgresql 使用者 進入 postgresq...