I've been trying to add a list to a dictionary<int, struct arts>.
When I add it, then clear the list like list.clear(); then the
Information that I have copied in a dictionary is all cleared as well.
How can I fix this, please?
for (int i = 0; i < current_artslist1.Count; i++)//
{
cnt++;
tmp_list1.Add(current_artslist1[i]);
if (cnt == limit)
{
art_small_page++;
cnt = 0;
artdict_small_tmp.Add(art_small_page, tmp_list1);
tmp_list1.Clear();
}
}