コード例 #1
0
ファイル: Employee.cs プロジェクト: svd62rus/EmployeeList-2.0
 public bool Equals(Employee other)
 {
     if (other == null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id.Equals(other.Id) && Name.Equals(other.Name) &&
            Surname.Equals(other.Surname) && Patronymic.Equals(other.Patronymic) &&
            DepartmentId.Equals(other.DepartmentId) && IsFired.Equals(other.IsFired) &&
            Salary.Equals(other.Salary) && DateHired.Equals(other.DateHired) &&
            DateFired.Equals(other.DateFired));
 }