コード例 #1
0
 public bool Equals(EmployeeDto other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id == other.Id && string.Equals(LastName, other.LastName) && string.Equals(FirstName, other.FirstName) && string.Equals(Title, other.Title) && string.Equals(TitleOfCourtesy, other.TitleOfCourtesy) && BirthDate.Equals(other.BirthDate) && HireDate.Equals(other.HireDate) && string.Equals(Address, other.Address) && string.Equals(City, other.City) && string.Equals(Region, other.Region) && string.Equals(PostalCode, other.PostalCode) && string.Equals(Country, other.Country) && string.Equals(HomePhone, other.HomePhone) && string.Equals(Extension, other.Extension) && Equals(Photo, other.Photo) && string.Equals(Notes, other.Notes) && ReportsTo == other.ReportsTo && string.Equals(PhotoPath, other.PhotoPath));
 }
コード例 #2
0
ファイル: Employee.cs プロジェクト: kib357/Ester2
 protected bool Equals(Employee other)
 {
     return(string.Equals(FullName, other.FullName) && string.Equals(Department, other.Department) && string.Equals(Position, other.Position) && HireDate.Equals(other.HireDate) && string.Equals(EmployeeNumber, other.EmployeeNumber));
 }