【发布时间】:2016-06-21 10:24:57
【问题描述】:
我有 readonlucollection 和 IList 的两个属性
并创建了List<string> 的另一个属性
OptionList 是 readonlycollection<string> 和 ForList 是 IList<string>
但我没有在组合列表中获得完整列表,它跳过了optionlist 中的一些元素。
我如何获得完整列表?
public List<string> CombineList {
get {
return OptionList.Union(ForList).ToList();
}
}
【问题讨论】: