Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Item In Dictionary
Message
De
04/05/2010 11:39:53
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
04/05/2010 09:49:47
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01462835
Message ID:
01463034
Vues:
50
>>
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform