Hashtable hs = new Hashtable(); List<string> b; List<string> a = new List<string>(); a.Add("1"); a.Add("2"); a.Add("3"); hs.Add("mm", a); b = hs["mm"] as List<string>; b.Add("4"); b.Add("5"); b = null;為什么b為空時(shí),hs中的value為1,2,3,4,5?
麻煩看一下代碼
ibeautiful
2018-08-22 10:05:45