Home > .NET Framework > CLR Generics – Notable BCL Additions

CLR Generics – Notable BCL Additions

System.Collections.Generics is probably the most popular which offer strongly typed generic based collections over their 1.1 counterparts in System.Collections.

Generic based collection Non Generic equivalent
List ArrayList
Dictionary Hashtable
SortedDictionary SortedList
Stack Stack
Queue Queue
IList IList
IDictionary IDictionary
ICollection ICollection
IEnumerable IEnumerable
IEnumerator IEnumerator
IComparable IComparable
IComparer IComparer

System.Nullable introduces nullable value types to CLR. You cannot assign value types like int, long, float, double etc to nulls in 1.1. This would be a pain especially if you are reading a nullable integer field from the database.

Categories: .NET Framework
  1. No comments yet.
  1. November 19, 2010 at 11:00 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: