当我想将一个巨大的列表(大约700,000个元素)与一个特定的属性和字符串列表进行比较时,需要花费很长时间。我尝试过AsParallel,但现在对我无济于事。我需要removeedSuccessFromList的列表,因为我想使用此列表来启动Parallel.ForeachList<string> successStrings = service.GetProperty().Select(q => q.IdString).ToList();List<Property> removedSuccessFromList = properties.AsParallel().Where(q => !successStrings.Contains(q.IdString)).ToList();
- 2 回答
- 0 关注
- 145 浏览
添加回答
举报
0/150
提交
取消