标签:arp ted ble exce string new article str equal
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(); } }
标签:arp ted ble exce string new article str equal
原文地址:http://www.cnblogs.com/zhchoutai/p/6785784.html