Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Item In Dictionary
Message
From
04/05/2010 11:39:53
John Baird
Coatesville, Pennsylvania, United States
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01462835
Message ID:
01463034
Views:
51
>>
>>You would order the linq result by his Order Value... and process them...
>
>So you're not talking about inserting items into a List in specific locations but using Linq to pull an OrderedEnumerable from the random list? Something like:
 var v = from t in things orderby t.Order select t;
>foreach (Thing x in v)
>   { //... }
I'm so confused. I was responding to mike about inserting into a specific position in that dictionaries do not support that and list/array do. That's all.

As to Kevin, I don't know why he wants to insert into a specific location in a dictionary, I simply said it could be added as normal and then when required perform a linq query ordered by his variable as above and process them. I don't know what he's trying to do or really care. Just making an observation.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform