Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FromDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ToDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (Location != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(Location) : 0);
         hashCode = (hashCode * 397) ^ (Organiser != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(Organiser) : 0);
         hashCode = (hashCode * 397) ^ (Subject != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(Subject) : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public bool Equals(AppointmentInfo other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(FromDateTime.Equals(other.FromDateTime) && ToDateTime.Equals(other.ToDateTime) && string.Equals(Location, other.Location, StringComparison.OrdinalIgnoreCase) && string.Equals(Organiser, other.Organiser, StringComparison.OrdinalIgnoreCase) && string.Equals(Subject, other.Subject, StringComparison.OrdinalIgnoreCase));
 }
 public bool Equals(MeasurementItem other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(FromDateTime.Equals(other.FromDateTime) &&
            TillDateTime.Equals(other.TillDateTime) &&
            Equals(Values, other.Values) &&
            Equals(Indexes, other.Indexes) &&
            Equals(Standards, other.Standards));
 }
Ejemplo n.º 4
0
 public bool Equals(Measurement other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id.Equals(other.Id) &&
            InstallationExternalId == other.InstallationExternalId &&
            UpdateDateTime.Equals(other.UpdateDateTime) &&
            FromDateTime.Equals(other.FromDateTime) &&
            TillDateTime.Equals(other.TillDateTime) &&
            Equals(Values, other.Values) &&
            Equals(Indexes, other.Indexes) &&
            Equals(Standards, other.Standards));
 }