équivalent d'un "select .. in" en Linq c# ?
Bonjour,
Je cherche à savoir comment écrire mon bout de code "x.technicalAttribute in (toutes les valeurs du membre technicalAttribute de TAPricingCategory de ma liste tapcs)" ici :
Code:
1 2 3 4
| List<TAPricingCategory> taPricingCategorys = FillAllPossiblePricingCategorys();
List<TARateAdjustment> taRateAdjustments = FillAllPossibleRateAdjustments();
List<TAPricingCategory> tapcs = taPricingCategorys.Where(x => x.model == "toto").ToList();
List<TARateAdjustment> taras = taRateAdjustments.Where(x => x.model == "toto" && x.technicalAttribute in (toutes les valeurs du membre technicalAttribute de TAPricingCategory de ma liste tapcs) ).ToList(); |
J'imagine bien (j'espère bien..) que c'est possible mais je cale, quelqu'un sait-il le faire s'il vous plaît ?