Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a type that stores data indexed by a string key, or integer index?

List(Of T) stores data indexed by integer Dictionary(Of String, T) stores data indexed via string

Is there a type or generic or specialized something that would let me access an array of T by either an index or name?

like image 484
Maslow Avatar asked Jun 10 '09 19:06

Maslow


1 Answers

I think System.Collections.Specialized.OrderedDictionary is what you're looking for.

like image 199
mmx Avatar answered Nov 15 '22 03:11

mmx