【发布时间】:2011-08-14 11:50:21
【问题描述】:
可以将两个arraylist中的数据存储到<list>中吗?
这是我的代码,其中包含两个将合并的数组:
ArrayList arrPrices = new ArrayList();
List<StockInfoPrice> lstStockInfoPrice = new List<StockInfoPrice>();
Util oUtils = new Util();
arrPrices = oUtils.GetPrices(SymbolIndex);
ArrayList arrDetails = new ArrayList();
List<StockInfoDetails> lstStockInfoDetails = new List<StockInfoDetails>();
Util oUtils = new Util();
arrPrices = oUtils.GetDetails(SymbolIndex);
【问题讨论】:
-
我认为第三个
arrPrices是指arrDetails,嗯?