繼承 Collection<T>

繼承 Collection<T>

Collection2

由 TColelction 可覆寫 Collection 方法:

  1. protected override void InsertItem(int index, T item)
     
  2. protected override void SetItem(int index, T item)
     
  3. protected override void RemoveItem(int index)
     
  4. protected override void ClearItems()

由 T 可覆寫 Object 方法:

  1. public override bool Equals(object obj)
     
  2. public override string ToString()
     
  3. public override int GetHashCode()