Mercurial > pub > bltoolkit
annotate Source/Data/Linq/MemberInfoComparer.cs @ 4:f757da6161a1
!bug 100 + 2h fixed gregression
author | cin |
---|---|
date | Sun, 24 Aug 2014 17:57:42 +0400 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 using System.Collections.Generic; | |
3 using System.Reflection; | |
4 | |
5 namespace BLToolkit.Data.Linq | |
6 { | |
7 using Reflection; | |
8 | |
9 class MemberInfoComparer : IEqualityComparer<MemberInfo> | |
10 { | |
11 public bool Equals(MemberInfo x, MemberInfo y) | |
12 { | |
13 return TypeHelper.Equals(x, y); | |
14 } | |
15 | |
16 public int GetHashCode(MemberInfo obj) | |
17 { | |
18 return obj == null ? 0 : obj.Name.GetHashCode(); | |
19 } | |
20 } | |
21 } |