Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Split collection
Message
De
17/02/2011 09:16:42
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Titre:
Split collection
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01500522
Message ID:
01500522
Vues:
122
I'm sure there's an easy way to do this but I can't come up with it...

I have a collection with a Group string field. What I'd like to do is split that collection into (n) number of collections for each Group. I'll end up with a loop similar to this:
foreach (var group in groups)
{
   foreach (var item in group)
   {
      //process item.
   }
}
Any guidance out there??? Thanks!
Very fitting: http://xkcd.com/386/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform