标签:blog io os ar on 2014 log new as
1.调用:
UserList = UserList.ToList().Intersect(userIDList, new MyUserComparer()).AsQueryable();
public class MyUserComparer : IEqualityComparer<MyUser> { public bool Equals(MyUser x, MyUser y) { //throw new NotImplementedException(); return x.UserID == y.UserID; } public int GetHashCode(MyUser obj) { return obj.ToString().GetHashCode(); } }
标签:blog io os ar on 2014 log new as
原文地址:http://blog.csdn.net/anpan1045535101/article/details/40588017