摘要: 泛型List去除重复指定字段ID var list=listTemp.Distinct(new IDComparer ()).ToList(); 重写比较的方法: public class IDComparer : IEqualityComparer<T> { public bool Equals( 阅读全文
posted @ 2017-11-28 19:07 xs~ing 阅读(1163) 评论(0) 推荐(0) 编辑