23 lines
749 B
C#
23 lines
749 B
C#
using Dlhis.ScheduledTask.Extensions;
|
|
using Dlhis.ScheduledTask.WsProxy;
|
|
|
|
namespace Dlhis.ScheduledTask.Comparers
|
|
{
|
|
internal class ZHRS_ORGComparer : IEqualityComparer<ZHRS_ORG>
|
|
{
|
|
public bool Equals(ZHRS_ORG x, ZHRS_ORG y)
|
|
{
|
|
if (ReferenceEquals(x, y)) return true;
|
|
if (ReferenceEquals(x, null)) return false;
|
|
if (ReferenceEquals(y, null)) return false;
|
|
if (x.GetType() != y.GetType()) return false;
|
|
return x.OBJID == y.OBJID && x.STEXT == y.STEXT && x.SOBID == y.SOBID;
|
|
}
|
|
|
|
public int GetHashCode(ZHRS_ORG obj)
|
|
{
|
|
return obj.OBJID.SafeGetHashCode() ^ obj.STEXT.SafeGetHashCode() ^ obj.SOBID.SafeGetHashCode();
|
|
}
|
|
}
|
|
}
|