C
Chad Z. Hower aka Kudzu
StringCollection seems like a natural candidate to descend from ArrayList,
yet it descends from Object.
Why does StringCollection not descend from ArrayList? Descending from
ArrayList would give it type compatibility on methods (yes I know IList). But
it would also give it inherited functionality like Sort. StringCollection
does not have any Sort method either...
SortedList can be used, however SortedList requires keys and is a poor choice
if what I really need to store is just a list of strings.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
yet it descends from Object.
Why does StringCollection not descend from ArrayList? Descending from
ArrayList would give it type compatibility on methods (yes I know IList). But
it would also give it inherited functionality like Sort. StringCollection
does not have any Sort method either...
SortedList can be used, however SortedList requires keys and is a poor choice
if what I really need to store is just a list of strings.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/