Dictionary <string, List <SaleItem>> saleItemNew = new Dictionary<string, List< SaleItem>> ();
saleItems = new List <SaleItem> ();
saleItemNew.Add("1", saleItems);
At this point the list in the Dictionary has values.
saleItems.Clear();
However, when I clear out the list previously assigned to it, the dictionary's value List is now empty...why?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…