Esempio n. 1
0
 public bool Equals(Foo other)
 {
     if (other is null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id.Equals(other.Id) && CreateDateTime.Equals(other.CreateDateTime) && ClassName == other.ClassName);
 }
Esempio n. 2
0
 public bool Equals(ExcelRow other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Name == other.Name &&
            Description == other.Description &&
            Source == other.Source &&
            Aim == other.Aim &&
            IsCofidentialityViolation == other.IsCofidentialityViolation &&
            IsIntegrityViolation == other.IsIntegrityViolation &&
            IsAvailabilityViolation == other.IsAvailabilityViolation &&
            CreateDateTime.Equals(other.CreateDateTime) &&
            UpdateDateTime.Equals(other.UpdateDateTime));
 }