Daily WTF

Is anyone else disturbed by the fact that System.Collections.Specialized.StringDictionary does not implement IDictionary?  Nor does NameValueCollection.  Am I missing something?

posted @ Tuesday, August 21, 2007 8:29 AM


Print

Comments on this entry:

# re: Daily WTF

Left by cristian at 8/21/2007 11:05 AM

maybe because they work against string whilst idictionary specifies objects

# re: Daily WTF

Left by Anders Norås at 8/21/2007 1:06 PM
Gravatar

Christian is right. The System.Collections.IDictionary defines methods who consume and produce System.Object. .NET 2.0 introduced the new System.Collections.Generic.IDictionary<K,V> interface, and this one pretty much deprecates the old StringDictionary and NameValueCollection types.

Your comment:



 (will not be displayed)


 
 
 
Please add 6 and 2 and type the answer here:
 

Live Comment Preview:

 
«October»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678