Bonjour,
j'aimerai supprimer certains objects de type DmjSubscriptionsDo de ma hashtable _dmjSubscriptions;
je pourrai essayer remove mais je ne connais pas la clé et je ne sais pas comment la récupérer?
voir ICI comment supprimer l'object juste au dessus :
merci de m'éclairer!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 _dmjSubscriptions = GetAll(factory); IDmjSubscriptionsDao dmjSubscriptionsDao = (IDmjSubscriptionsDao)factory.GetDao(typeof(IDmjSubscriptionsDao)); IList listTmp = dmjSubscriptionsDao.GetAll(); if (listTmp != null) { _dmjSubscriptions = new Hashtable(); foreach (DmjSubscriptionsDo obj in listTmp) { foreach (DmjSubscribersDo obj2 in subscribersList) { if (obj.Id == obj2.SubId) { DmjSubscriptionsDo dmjSubTmp = GetSpecificSubscription(factory, obj2.SubId); ICI } } } }![]()
Partager