blog.easyciel.net author="Patrick Rabian" about="c#, sharepoint, biztalk, team system resources" more="news, samples, tips for .NET world's developers !"

Which collection type to use in .NET 2.0 ?

Thursday, 18 May 2006 17:15 by prabian

Generic Class Description Non-Generic Counterpart
BindingList<T> List that supports complex data-binding scenarios None
Collection<T> Provides the base class for a generic collection CollectionBase
Comparer<T> Compares two objects of the same generic type for sorting Comparer
Dictionary<K, V> A collection of key/value pairs Hashtable
IEnumerable<T> A collection that can be iterated using a for-each statement IEnumerable
KeyedCollection<T, U> A keyed collection KeyedCollection
LinkedList<T> A doubly linked list None
List<T> The base class for a list ArrayList
Queue<T> A FIFO collection of objects Queue
ReadOnlyCollection<T> The base class for a generic read-only collection ReadOnlyCollectionBase
SortedDictionary<K, V> A collection of key/value pairs sorted by key SortedList
Stack<T> A simple LIFO collection of objects Stack

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   .NET Projects
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

November 20. 2008 21:52