摘要:
例如:根据Para表中的type和paraid字段进行比较public class TypeComparer : IEqualityComparer { bool IEqualityComparer.Equals(Parax,Paray) { if (x == null) return y == null; return x.type == y.type&&x.paraid==y.paraid;//如果有英文,考虑比较大小写 } int IEqualityComparer.GetHashCode(Paraobj) { if (obj == null) return 0; ret 阅读全文
posted @ 2013-07-12 12:27
平日
阅读(518)
评论(0)
推荐(0)
浙公网安备 33010602011771号