Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to sort a collection
Message
De
31/01/2013 08:02:57
 
 
À
31/01/2013 04:27:18
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01564757
Message ID:
01564823
Vues:
37
>Assuming you want to sort on the first element (tcField):
var result = oParametersDataDictionaryField.OfType<object[]>().OrderBy(x=>x[0]).Reverse();
That said I would probably have used a generic dictionary instead :-}

This is very interesting. I will try that later on and let you know.

If I would use a generic collection, what advantages would I gain?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform