List<int> listA = new List<int> {1,2,3,5,7,9};
List<int> listB = new List<int> {13,4,17,29,2};
listA.AddRange(listB );//把集合A.B合并
List<int> Result = listA.Union(listB).ToList<int>(); //剔除重复项
List<int> Result = listA.Concat(listB).ToList<int>(); //保留重复项
listA.BinarySearch("1");//判断集合中是否包含某个值.如果包含则返回0
博客围绕C#中List的合并展开,虽未给出具体内容,但核心是信息技术领域中C#语言里List数据结构的合并操作,这在后端开发等场景有重要应用。
392

被折叠的 条评论
为什么被折叠?



