From: T. T. <te...@gm...> - 2008-12-13 22:00:37
|
Davy, one more thing I noticed while i was in jira. Hashtable returns null when a key is not found, but a dictionary throws KeyNotFoundException. [Fact] public void Dictionary_throws_exception_when_key_not_found() { IDictionary<string, string> dictionary = new Dictionary<string, string>(); Assert.Throws<KeyNotFoundException>(delegate { var v = dictionary["dummykey"]; }); } [Fact] public void Hashtable_returns_null_when_key_not_found() { Hashtable hashTable=new Hashtable(); Assert.Null(hashTable["dummykey"]); } On Mon, Nov 24, 2008 at 9:31 PM, <dav...@us...> wrote: > + private IDictionary<string, ArrayList> > parameterValueArrayHashTable; > + private IDictionary<string, bool> > parameterIsAllNullsHashTable; > -- Tuna Toksöz http://tunatoksoz.com Typos included to enhance the readers attention! |