comparison Source/Data/Linq/MemberInfoComparer.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
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 }