..:: Chalama's Random Musings ::.. Sunday, May 20, 2012
  Search
Register  Login
Location: BlogsRandom Musings    
Posted by: chalama Challa 3/7/2011 11:52 PM

Dictionary is a generic class Dictionary<TKey,TValue>, where as HashTable needs casting of the objects.

var Employees=new Dictionary<string,Employee>();
Employee emp=Employees[“JohnDoe”];

var Employees=new HashTable();
Employee emp=Employees[“JohnDoe”] as Employee;

Dictionary cannot be used with webservices as no webservices support generics.

Dictionary is implementation of the hashtable
Dictionary is TypeSafe, it can support multiple readers as long as the collection is not modified.

powered by metaPost
Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 

Copyright 2007 by Chalama.net   Terms Of Use  Privacy Statement