M
Mike P
I have 2 hashtables each of which I am using to store a set of IDs and
Descriptions. Hashtable 1 will have the full set of data (e.g. IDs
1,2,3,4,5) whereas Hashtable 2 will only have a subset of that data
(e.g. IDs 2,4).
What I want to do is to iterate through Hashtable 1 (using foreach?)
checking if each ID/Description is in Hashtable 2, and if not, then I
want to add the ID/Description into Hashtable 3. So by the end of this
I will have :
Hashtable 1 : complete set of data
Hashtable 2 : subset of data
Hashtable 3 : data in Hashtable 1 but not in Hashtable 2
Can anybody tell me how to iterate through my hashtables, and how to add
the data (IDs and Descriptions) to the third hashtable?
Descriptions. Hashtable 1 will have the full set of data (e.g. IDs
1,2,3,4,5) whereas Hashtable 2 will only have a subset of that data
(e.g. IDs 2,4).
What I want to do is to iterate through Hashtable 1 (using foreach?)
checking if each ID/Description is in Hashtable 2, and if not, then I
want to add the ID/Description into Hashtable 3. So by the end of this
I will have :
Hashtable 1 : complete set of data
Hashtable 2 : subset of data
Hashtable 3 : data in Hashtable 1 but not in Hashtable 2
Can anybody tell me how to iterate through my hashtables, and how to add
the data (IDs and Descriptions) to the third hashtable?