Tuesday 7 April 2015

Dictionary vs Hash table



   Dictionary
                        Hash Table
1-Dictionary is  a generic type
1-    Hash table isn’t a generic type
2-It is a strongly type.
2:- It is a weakly type
3-Need no boxing and unboxing
3-Need boxing and unboxing
4- It is type safe
4- No type safe
5-Not thread safe
5-Thread  safe
6-Define in the namespace System.Collection.Generic
6-It define in the namespace System.Collections

No comments:

Post a Comment