Mercurial > pub > bltoolkit
annotate Source/Data/Linq/MemberInfoComparer.cs @ 9:1e85f66cf767 default tip
update bltoolkit
author | nickolay |
---|---|
date | Thu, 05 Apr 2018 20:53:26 +0300 |
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 } |