Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Logic problem
Message
 
 
À
27/08/2014 13:31:38
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01606497
Message ID:
01606576
Vues:
45
>>Also, what do I need to use to flip it other as the next loop does the following:
>>
>>
>>  // Add New List
>>                foreach (var item in modifierGroup.Items)
>>                {
>>                    if (!itemIds.Contains(item.ItemId))
>>                    {...
>>
>>
Maybe:
foreach(var i in modifierGroup.Items.Where(x=> !itemIds.Contains(x.ItemId)))
>            {
>                // Use i (or i.ItemId) here
>            }
Thanks again, it worked quite nicely.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform