| 12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- namespace PRS.Mobile
- {
- public class EmployeeTeamSummary
- {
- public Guid ID { get; private set; }
- public String Name { get; private set; }
-
- public EmployeeTeamSummary(Guid id, String name)
- {
- ID = id;
- Name = name;
- }
- }
-
- public class EmployeeTeamSummaryEqualityComparer : IEqualityComparer<EmployeeTeamSummary>
- {
- public bool Equals(EmployeeTeamSummary x, EmployeeTeamSummary 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.ID == y.ID;
- }
- public int GetHashCode(EmployeeTeamSummary obj)
- {
- return obj.ID.GetHashCode();
- }
- }
- }
|