markus / ConvertService / ServiceBase / Markus.Service.Extensions / Helper / ConvertItemComparer.cs @ 05eeeae3
이력 | 보기 | 이력해설 | 다운로드 (969 Bytes)
1 | 78683624 | semi | //using Markus.Service.Interface; |
---|---|---|---|
2 | //using System; |
||
3 | //using System.Collections.Generic; |
||
4 | //using System.Linq; |
||
5 | //using System.Text; |
||
6 | //using System.Threading.Tasks; |
||
7 | b92f142f | taeseongkim | |
8 | 78683624 | semi | //namespace Markus.Service.Helper |
9 | //{ |
||
10 | // public class ConvertItemComparer : IEqualityComparer<ConvertItem> |
||
11 | // { |
||
12 | // public bool Equals(ConvertItem x, ConvertItem y) |
||
13 | // { |
||
14 | // if (Object.ReferenceEquals(x, y)) return true; |
||
15 | b92f142f | taeseongkim | |
16 | 78683624 | semi | // if (Object.ReferenceEquals(x, null) || Object.ReferenceEquals(y, null)) |
17 | // return false; |
||
18 | b92f142f | taeseongkim | |
19 | 78683624 | semi | // return x.ConvertID == y.ConvertID && x.ProjectNumber == y.ProjectNumber; |
20 | // } |
||
21 | b92f142f | taeseongkim | |
22 | |||
23 | 78683624 | semi | // public int GetHashCode(ConvertItem convertItem) |
24 | // { |
||
25 | // var id = (convertItem.ConvertID != null) ? convertItem.ConvertID : ""; |
||
26 | // var project = (convertItem.ProjectNumber != null) ? convertItem.ProjectNumber : ""; |
||
27 | b92f142f | taeseongkim | |
28 | 78683624 | semi | // return (id + project).GetHashCode(); |
29 | // } |
||
30 | // } |
||
31 | //} |