John Baird
Coatesville, Pennsylvania, United States
General information
Category:
Coding, syntax and commands
>>>I need to insert an item into a Dictionary at a specific position. Each item in the dictionary object has an Order value that specifies the position the item should be in in the collection.
>>>
>>>Anyone know how to do this?
>>
>>Out of curiosity, why do you care where it is?
>
>
>You can add items to the dictionary in any order you want. When you need to process the items in a given order, use a Linq query to extract them in the order you need.
I understand that. But aren't Dictionary items retrieved by key? It seems to me the same as caring where a row is in a database table.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only