Bonjour ,
J'essai de supprimer un objet d'une liste à partir d'un objet obtenu a partir d'une autre liste comme suit :
1 2 3 4 5 6 7 8 9 10
|
lbx_TPDO_Dispo.Items.Clear();
List<TPDO> ListeTPDODispo = TPDO_GetListByPC(PC_id);
List<TPDO> ListeTPDOSelect= TPDO_GetListByProfilId(Profil_id);
foreach (TPDO oTPDO in ListeTPDOSelect)
{
ListeTPDODispo.Remove(oTPDO);
} |
Malheuresement ca ne marche pas .
En gros ce que jaimerai faire cest filtrer la
List<TPDO> ListeTPDODispo
à partir de
List<TPDO> ListeTPDOSelect
. quelqu'un aurait-il une idée ??
Partager