我有两个属性readonlucollection
和IList的 创造的List<string>
OptionList
是readonlycollection<string>
另一个属性和ForList
是IList<string>
但我不明白的结合列表完整列表它跳过一些元素从optionlist
。如何连接ReadOnlyCollection <string>和IList的<string>
我如何获得完整列表?
public List<string> CombineList {
get {
return OptionList.Union(ForList).ToList();
}
}