Mercurial > pub > bltoolkit
annotate Source/Data/Linq/MemberInfoComparer.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author | cin |
---|---|
date | Fri, 28 Mar 2014 01:04:56 +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 } |