Expand|Select|Wrap|Line Numbers
- iindex = 0;
- foreach (XmlNode Labelnodes1 in Labelnode)
- {
- countlab = Labelnodes1.Attributes.Count;
- for (int i = 0; i < countlab; i++)
- {
- String temp2 = Labelnodes1.Attributes[i].Name;
- String temp1 = Labelnodes1.Attributes[i].InnerText;
- Proplabval.Add(temp2, temp1);
- }
- Proptablab.Add(iindex, Proplabval);
- Proplabval.Clear();
- iindex++;
- }
My for loop(line no 5) will create a hash table.
And it is added to a hash table in for each loop(line no 2)....
Both string temp2,temp1 has correct values..... But when i come out of for each loop my hash table Proptablab do not contain anything....
When i put a break point at line no 12... For all entries it shows the same values.. ie value 1 is same as value2 and equal to value3...