Пример #1
0
 public bool Equals(DummyTestClass other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(FirstName, other.FirstName) &&
            string.Equals(LastName, other.LastName) &&
            Age == other.Age && Height.Equals(other.Height) &&
            Worth.Equals(other.Worth) &&
            Weight == other.Weight &&
            DateOfBirth.TrimMilliseconds().Equals(other.DateOfBirth.TrimMilliseconds()) &&
            Initial == other.Initial &&
            Equals(Parents, other.Parents) &&
            IdNumber.Equals(other.IdNumber));
 }